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