[buug] checking a pid
Ian Zimmerman
itz at speakeasy.org
Wed Feb 26 21:24:44 PST 2003
Will> From "man 2 kill":
Will> SYNOPSIS #include <sys/types.h> #include <signal.h>
Will> int kill(pid_t pid, int sig);
Will> <snip...>
Will> If sig is 0, then no signal is sent, but error checking is still
Will> per- formed.
Will> ... so basically, if you kill(pid, 0) and it doesn't return an
Will> error, pid is still running.
No. Read my original article, again. Then perhaps read the kernel source.
--
Ian Zimmerman, Oakland, California, U.S.A.
if (sizeof(signed) > sizeof(unsigned) + 4) { delete this; }
GPG: 433BA087 9C0F 194F 203A 63F7 B1B8 6E5A 8CA3 27DB 433B A087
More information about the buug
mailing list