Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!dptechno!dptechno.uucp From: dave@dptechno.uucp (Dave Lee) Newsgroups: comp.unix.misc Subject: Checking if a process exists, reguardless of uid,euid Message-ID: <571@dptechno.UUCP> Date: 5 Sep 90 17:48:29 GMT Sender: dave@dptechno.UUCP Organization: D.P. Technology Corp. Camarillo California Lines: 32 I saw this hashed around a bunch a while back, but I did not see a definate answer. Will the following function always determine if the supplied process id (pid) is currently running *** reguardless *** of the effective and actual id's of the calling process and the supplied process ? It does work with HP-UX 7.0 in all cases I could try. Is this different for BSD versions and SYS V ? What does POSIX and SVID2 have to say about this? #include IsAlive( pid ) int pid; { int ret; extern int errno; errno = 0; ret = kill( pid , 0 ); return( ret == 0 || errno == EPERM ); } Email or post at your convience. Thanks a bunch ... -- Dave Lee uunet!dptechno!dave