Re: waitpid() does not wait for process exit
Re: waitpid() does not wait for process exit
- Subject: Re: waitpid() does not wait for process exit
- From: Anatol Pomozov <email@hidden>
- Date: Wed, 04 May 2011 08:33:13 -0700
Hi
On Tue, May 3, 2011 at 9:49 PM, Dave Keck <email@hidden> wrote:
> A quick guess: perhaps your parent process has elected for the kernel
> to automatically reap child processes, via a call similar to:
>
> signal(SIGCHLD, SIG_IGN);
>
> I would expect the behavior you describe from waitpid() if the above
> functionality is enabled.
>
> See http://en.wikipedia.org/wiki/SIGCHLD.
Aha, Thanks.
Although tup does not use SIGCHLD, the macfuse library does. In the
function fuse_mount_core() from
http://macfuse.googlecode.com/svn/trunk/core/10.5/libfuse/fuse-2.7.3-macosx.patch
it has
signal(SIGCHLD, SIG_DFL);
and later
signal(SIGCHLD, SIG_IGN);
Now I am trying to understand why macfuse does it.
PS "man waitpid" on my macosx does not mention SIGCHLD
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden