Prasanta Sadhukhan wrote:
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
Got it...Should have called kill(pid, 0)
Thanks anyways
-
To unsubscribe from this list: send the line "unsubscribe
linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html