fork trouble

Andrew Stubbs ams at codesourcery.com
Wed Jun 2 15:50:34 UTC 2010


Hi All,

The recent change to daemon.c for NPTL has included the following code:

  #ifndef __UCLIBC_HAS_THREADS_NATIVE__
  	/* Make certain we are not a session leader, or else we
  	 * might reacquire a controlling terminal */
  	if (fork())
  		_exit(0);
  #endif

This cannot work on systems that only support vfork.

Any suggestions on how to fix this?

Thanks

Andrew


More information about the uClibc mailing list