[LTP] [PATCH] rt_sigtimedwait01: fix probability of failure
Cyril Hrubis
chrubis@suse.cz
Mon Jan 16 14:33:20 CET 2017
Hi!
> pid = getpid();
> WITH_SIGNALS_BLOCKED(if ((cpid = fork()) == 0) {
> @@ -138,6 +139,8 @@ pid_t create_sig_proc(unsigned long usec, int sig, unsigned count)
> EPRINTF("fork failed.\n");
> return cpid;
> default:
> + /* wait cpid finish */
The comment here is redundant and useless.
> + waitpid(cpid, &status, 0);
> return cpid;
> }
> }
> --
> 1.8.3.4
>
>
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list