[sheepdog] [PATCH] logger: avoid using SIGHUP for detecting death of sheep
Liu Yuan
namei.unix at gmail.com
Wed Jan 15 04:13:50 CET 2014
On Tue, Jan 14, 2014 at 05:46:26PM +0900, Hitoshi Mitake wrote:
> It seems that current method of detecting sheep's death from logger
> process sometimes fails. The SIGHUP is caught as a request of log
> rotation.
>
> The problem comes from that SIGHUP is used for both of log rotation
> request and death detection, and getppid() somestimes returns value
> not equal to 1 when SIGHUP which is caused by the death rises.
why not == 1 if sheep dies? I think we need to find the root cause instead of
a workaround.
Thanks
Yuan
More information about the sheepdog
mailing list