linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Running status of a process
@ 2007-03-21  8:13 Prasanta Sadhukhan
  2007-03-21  8:30 ` Steve Graegert
  2007-03-21  8:33 ` Prasanta Sadhukhan
  0 siblings, 2 replies; 4+ messages in thread
From: Prasanta Sadhukhan @ 2007-03-21  8:13 UTC (permalink / raw)
  To: linux-c-programming

Hi,

Can anyone point as to how can I obtain the information whether a 
non-child process is still running?

I tried waitpid(pid, &status, WNOHANG) but always receive return value 
as -1 with errno as ECHILD.
Since the processes I am waiting for is not the child of this process 
from where I am calling waitpid() (ie, they are independant processes), 
it might be a valid error but what is the other alternative?

Regards
Prasanta


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-03-21  8:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21  8:13 Running status of a process Prasanta Sadhukhan
2007-03-21  8:30 ` Steve Graegert
2007-03-21  8:34   ` Prasanta Sadhukhan
2007-03-21  8:33 ` Prasanta Sadhukhan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).