monit-dev
[Top][All Lists]
Advanced

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

Re: solaris and kill(pid, 0)


From: Jan-Henrik Haukeland
Subject: Re: solaris and kill(pid, 0)
Date: 23 Oct 2002 12:17:05 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service)

Jan-Henrik Haukeland <address@hidden> writes:

> [1] Aha, maybe the kill(0) signal on Solaris wakes up the monit
> daemon in it's sleep phase. This sounds plausible and then you will
> have a race condition on which thread sets errno. One soulution
> could be to mask out the 0 signal if possible at all in a signal(0,
> SIG_IGN) ?

I think I'm on to something here :) Check out if Solaris has a kill_r
function you could use instead. If exist, the signature should look
something like 'int kill_r(int pid, int sig,. int *error)'

-- 
Jan-Henrik Haukeland




reply via email to

[Prev in Thread] Current Thread [Next in Thread]