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 |