Running status of a process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-
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

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux