Re: Kill system call

Kayvan Sylvan (widget@lame.org)
Sat, 23 Mar 1996 05:21:02 -0500 (EST)


> > Since 3.2.2.2 implies that this is acceptable, many people are assuming
> > it works, and these programs will break on Linux.
>
> No, only badly written tests break on linux. POSIX expressly states that
> ESEARCH means that the process doesn't exist, so THAT is what you should check
> against. POSIX also very expressly sais that EPERM means you don't have the
> permissions to send a signal to the process, so if you get EPERM you know that
> yes, the process exists, but I don't have the rights to signal it.
>
> > In fact, Linux is the
> > only OS I've heard of that treats the null signal this way. We should
> > probably consider this broken -- and fix it.
>
> Is it broken? It would be reasonably easy to fix, but do we really want to?
>
> Linus

The kill(pid,0) is usefull, at least i use it in some ftpd related project.
so dont mind him :) code would be a mess without it.

Renzo