Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2007 23:10:07 GMT
From:      Simon Perreault <simon.perreault@viagenie.ca>
To:        freebsd-threads@FreeBSD.org
Subject:   Re: threads/101323: fork(2) in threaded programs broken.
Message-ID:  <200709202310.l8KNA77r059169@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/101323; it has been noted by GNATS.

From: Simon Perreault <simon.perreault@viagenie.ca>
To: bug-followup@freebsd.org,
 phk@critter.freebsd.dk
Cc: Marc Blanchet <marc.blanchet@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;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709202310.l8KNA77r059169>