Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: wakatana
Forum: Programming 02-28-2011
23,975
Posted By Corona688
Yes, you're not supposed to use WEXITSTATUS() on...
Yes, you're not supposed to use WEXITSTATUS() on a PID, it's a different integer, but you're throwing that value away. Try:

{
int status;
waitpid(child_pids[i], &status, 0);
...
Showing results 1 to 1 of 1

 

Featured Tech Videos

All times are GMT -4. The time now is 02:03 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy