At Tue, 14 Jan 2014 17:46:26 +0900,
Hitoshi Mitake wrote:
> 
> @@ -620,6 +607,15 @@ static void logger(char *log_dir, char *outfile)
>  
>               unblock_sighup();
>  
> +             if (getppid() == 1) {
> +                     /* My parent (sheep process) is dead. */
> +                     log_flush();
> +                     closelog();
> +                     free_logarea();
> +
> +                     exit(1);

Breaking this loop is simpler.  Otherwise, this patch looks good to
me.

Thanks,

Kazutaka
-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to