From 0840786b5826d81b447e4cd4292f0615b17a15ae Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 13 Jan 2022 00:04:13 +0000 Subject: Get the supervision tree rid of any control terminal Signed-off-by: Laurent Bercot --- src/shutdown/s6-linux-init-shutdownd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/shutdown/s6-linux-init-shutdownd.c') diff --git a/src/shutdown/s6-linux-init-shutdownd.c b/src/shutdown/s6-linux-init-shutdownd.c index d9fba7e..ddf5804 100644 --- a/src/shutdown/s6-linux-init-shutdownd.c +++ b/src/shutdown/s6-linux-init-shutdownd.c @@ -306,11 +306,11 @@ int main (int argc, char const *const *argv) strerr_warnwu2sys("exec ", stage4_argv[0]) ; } - fdr = open_read(SHUTDOWND_FIFO) ; - if (fdr == -1 || coe(fdr) == -1) + fdr = openc_read(SHUTDOWND_FIFO) ; + if (fdr == -1) strerr_diefu3sys(111, "open ", SHUTDOWND_FIFO, " for reading") ; - fdw = open_write(SHUTDOWND_FIFO) ; - if (fdw == -1 || coe(fdw) == -1) + fdw = openc_write(SHUTDOWND_FIFO) ; + if (fdw == -1) strerr_diefu3sys(111, "open ", SHUTDOWND_FIFO, " for writing") ; if (!sig_altignore(SIGPIPE)) strerr_diefu1sys(111, "ignore SIGPIPE") ; -- cgit v1.3.1