[LTP] [PATCH 04/18] hugeshmctl01: Fix synchronization issue in parent process

Cyril Hrubis chrubis@suse.cz
Tue Oct 31 12:05:12 CET 2017


Hi!
> +		/* Wait for the child to exit */
> +		if (waitpid(pid_arr[i], &status, 0) != pid_arr[i] &&
> +			!WIFEXITED(status))

Please use SAFE_WAITPID() here, otherwise it's fine.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list