Re: Async IO

Matthias Urlichs (smurf@work.smurf.noris.de)
3 Feb 1997 16:29:36 +0100


In linux.dev.kernel, article <199702030606.BAA00518@wolverine.hq.cic.net>,
Jared Mauch <jared@wolverine.hq.cic.net> writes:
> Signal 0 checks to see if the process exists.
>
> If it does, it returns success, if it doesn't, it returns
> error.
>
Wrong.

If the process doesn't exist, it returns -1, errno == ESRCH.

If you aren't allowed to kill the process, you get EPERM.

If you are, you get zero.

-- 
All those things which are now held to be of the greatest antiquity,
were at one time new; and what we today hold up by example, will rank
hereafter as precedent.
                                -- Tacitus
-- 
Matthias Urlichs         \  noris network GmbH  /  Xlink-POP Nürnberg 
Schleiermacherstraße 12   \   Linux+Internet   /   EMail: urlichs@noris.de
90491 Nürnberg (Germany)   \    Consulting+Programming+Networking+etc'ing
   PGP: 1024/4F578875   1B 89 E2 1C 43 EA 80 44  15 D2 29 CF C6 C7 E0 DE
       Click <A HREF="http://info.noris.de/~smurf/finger">here</A>.    42