Link to home
Start Free TrialLog in
Avatar of clintc
clintc

asked on

checking process status using C function

Is there a unix C function that I can use to check the status of any
(non-child) process  on the system  if I know the process id and/or process name without using something  like system("ps") and checking the result.  wait/waitpid only works for child processes.

I believe there are win32 api that I can use to check the instance
of self running on the system and checking the status of other
process (WaitForSingleObject).

Thanks.

-clint
ASKER CERTIFIED SOLUTION
Avatar of ian010997
ian010997

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial