Re: waitpid() does not wait for process exit
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=PGEg760b3eqm2UvkHo7g5YploBTlWFU5YKG2Z3PED/E=; b=D2mb3jg8sg7inpM0SvFMlWTE1XBpZUJYuSQUH0/vDM2p5wAp5owHgyUQJhA4gGzHe/ TxrKR1XadTz6DjlB7WGw7adGhiaSym0p/kzBvgXyp2fw9wypU6m/x6/BKrEwWchV4qgI Vkb8aBk+dB+KRHU94hn93gofZqz56xqTLFoMA= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Vc2tfVT0tNfD3z8w1s30L14flEc+1lrh+VSnK5jKz0/0OZpTF/vgHpTk4MtVmuvhE2 siwTrQek84ivGPz8NSdsX3Hs/GD3fMmwtKE05JbAeTi5CquntNpKTkW2+swToIARSc2e HGD8i7wK/dSg+PCG+8jlCtHUUJxMntz+sMqP0= Hi On Tue, May 3, 2011 at 9:49 PM, Dave Keck <davekeck@gmail.com> 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.
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.... 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Anatol Pomozov