lkml.org 
[lkml]   [1997]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Async IO
Date
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

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.078 / U:0.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site