Re: [PATCH 07/15] daemon: use run-command api for async serving

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Erik Faye-Lund wrote:

> --- a/daemon.c
> +++ b/daemon.c
[...]
> @@ -671,18 +658,26 @@ static void check_dead_children(void)
>  	int status;
>  	pid_t pid;
>  
> -	while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
> +	struct child **cradle, *blanket;
> +	for (cradle = &firstborn; (blanket = *cradle);)
> +		if ((pid = waitpid(blanket->cld.pid, &status, WNOHANG)) > 1) {

What is this change (> 0 â > 1) about?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]