On Wednesday 30 April 2014 02:04 PM, Mohammad Merajul Islam Molla wrote:
Hello Sanjay, As far I know, if option argument is 0, the parent will wait for
Looks like waiting is done if childs exit. I checked for the offlined CPU case, if there are no child processes, waitpid returns -1. Setting errno as "no child processes"
specified child pid to terminate, its not for immediate return as in case of WNOHANG. This is probably the intended use of the code (author will be able to confirm). Changing 0 to WNOHANG macro will change the meaning of the code. Also, from header file - #define WNOHANG 0x00000001
sorry i referred wrong document
WNOHANG is defined as 1, not zero. Which makes me think of two cases below - 1. If the real intended purpose is to not to wait infinitely, replacing
[...] _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev