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 13:28:01 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service)

Oliver Jehle <address@hidden> writes:

> > >   if(getpgid(pid) == 0 || errno == EPERM)

Eh, of course 'if(getpgid(pid) > 0 || errno == EPERM)' BTW, I think
there was something with getpgid that made me use kill(2) in the first
place, but I can't remember. Ah, well, if it seems to work it's
probably a better solution as you pointed out Christian, since this
doesn't send any signals and because signals and threads is a shaky
combination everything we can reduce is a good thing.

-- 
Jan-Henrik Haukeland




reply via email to

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