threads/101323: fork(2) in threaded programs broken.
Simon Perreault
simon.perreault at viagenie.ca
Thu Sep 20 16:10:08 PDT 2007
The following reply was made to PR threads/101323; it has been noted by GNATS.
From: Simon Perreault <simon.perreault at viagenie.ca>
To: bug-followup at freebsd.org,
phk at critter.freebsd.dk
Cc: Marc Blanchet <marc.blanchet at viagenie.ca>
Subject: Re: threads/101323: fork(2) in threaded programs broken.
Date: Thu, 20 Sep 2007 11:22:20 -0400
Hi,
This email is an attemps to revive bug 101323 by stating that it prevents
Asterisk (http://www.asterisk.org/) from running in daemon mode. Here's what
Asterisk tries to do in a nutshell:
#include <pthread.h>
#include <stdlib.h>
void* dummy( void *data ) {}
int main()
{
pthread_t t1, t2;
pthread_create( &t1, NULL, dummy, NULL );
daemon(0,1);
pthread_create( &t2, NULL, dummy, NULL );
return 0;
}
More information about the freebsd-threads
mailing list