From ff581f2edfb6ddab0cc42a270a262e07e2143bea Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 20 Jul 2022 10:20:05 -0700 Subject: [PATCH] timeout: silence -Werror=unused-result. I think this was probably meant to be xpipe() anyway, since nothing good can come of pipe() failing here, and there's no explict check in the code that follows. --- toys/other/timeout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/other/timeout.c b/toys/other/timeout.c index 899bca61..221ef2e0 100644 --- a/toys/other/timeout.c +++ b/toys/other/timeout.c @@ -64,7 +64,7 @@ void timeout_main(void) toys.exitval = 0; pid = xpopen_both(toys.optargs+1, FLAG(i) ? fds : 0); - if (!FLAG(i)) pipe(fds); + if (!FLAG(i)) xpipe(fds); TT.pfd.events = POLLIN; TT.pfd.fd = fds[1]; ms = nantomil(&tts); -- 2.39.2