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=ghHZ0ZqqJwNTCgECjlK1y2XShRvWnYdbC9vUWoSkaWA=; b=QDLN0L+q8XqBI6F3GnYr9ubSTeqrwR61Q5eGYqn5bET4y5B4S+F/IvSRlugnt5auz4 uNVUbOUwLEcivD29pY6P0+3qBSgsfbaT37AglTBkPVfMM3XQEidJ7pYUNrqasgyyu3ws /bGxHtpYBui9YaUYJ8ZflVQL/1JWQFCvuc3tg= 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=jh8ixsnkyGHXHtCxGwPaly/AQ9odpRHfgpcN0cHXjtzdVv6GOxFbeIEnvdd4yO6uLr hu3P0iSNlshWpwght6mDRN+N58TgRjItQkKn/Ia43wvLQrN/8e48QrIuKMDVXfpCcZPM lkrnN3jU8Q9zgD8Cr/v88F853QesjKO2N/r1M= 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.
Thanks everyone for your help. If I remove signal(SIGCHLD, SIG_IGN) from the macfuse code my waitpid() starts working again as I expected. What macfuse does is some kind of "process demonization" and should be reimplemented without ignoring SIGCHLD in the parent process. Thanks. _______________________________________________ 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