On 2/21/07, Frank Hofmann <[EMAIL PROTECTED]> wrote:
On Wed, 21 Feb 2007, William James wrote:[ ... ] > Does forkall() clone all running threads? Solaris manpages are just wonderful :) fork(2) says: [ ... ] Threads A call to forkall() replicates in the child process all of the threads (see thr_create(3C) and pthread_create(3C)) in the parent process. A call to fork1() replicates only the calling thread in the child process. In Solaris 10, a call to fork() is identical to a call to fork1(); only the calling thread is replicated in the child process. This is the POSIX-specified behavior for fork(). [ ... goes on about pre/post-S10 fork() behaviour - ends with ... ] Applications that require replicate-all fork semantics must call forkall(). Helps ? :)
Yes, this and docs.sun.com help. Sadly forkall() is not portable and therefore useless unless you write an application only for Solaris. Cheers, William -- @,,@ William James (\--/) [EMAIL PROTECTED] (.>__<.) GNU/Solaris hacker _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
