[LTP] [PATCH 6/7] openposix: mq_timedreceive: Silence warning

Richard Palethorpe rpalethorpe@suse.de
Tue Jul 5 07:25:51 CEST 2022


Reviewed-by: Richard Palethorpe <rpalethorpe@suse.com>

Cyril Hrubis <chrubis@suse.cz> writes:

> We do not use the exit value from the child at all, but that's not a
> reason to produce warnings.
>
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
> ---
>  .../conformance/interfaces/mq_timedreceive/5-3.c                 | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c
> index a843c13ee..d79d9720d 100644
> --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c
> +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c
> @@ -110,5 +110,6 @@ int main(void)
>  		sleep(1);	/* give time to parent to set up handler */
>  		/* send signal to parent */
>  		kill(getppid(), SIGABRT);
> +		return 0;
>  	}
>  }
> -- 
> 2.35.1


-- 
Thank you,
Richard.


More information about the ltp mailing list