[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Q: How to determine wether a process is still running?
From:       Vadim Zaliva <lord () crocodile ! org>
Date:       1998-05-08 18:15:31
[Download RAW message or body]

On Fri, 8 May 1998, Preston Brown wrote:

> class for this should be a part of kdecore.  I am willing to code it if
> someone points me in the right direction for the syscall(s) I am going to
> need to check the process table for a particular PID...

here my old code which works under FreeBSD, Linux, Solaris, IRIX5,
HPUX9:

int     umtPid::IsExists()
{
    return (kill(Pid,0)==0); 
}

If somebody needs code which finds system bood time for above platforms,
email me. You will need it for locking.

Vadim

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic