diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-01-13 00:04:13 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-01-13 00:04:13 +0000 |
commit | 0840786b5826d81b447e4cd4292f0615b17a15ae (patch) | |
tree | aefb4437479e1a69f254b33d54f7e384a1764105 /src/shutdown | |
parent | fafa34059864fb8985d66243270c1e72609d4762 (diff) | |
download | s6-linux-init-0840786b5826d81b447e4cd4292f0615b17a15ae.tar.xz |
Get the supervision tree rid of any control terminal
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/shutdown')
-rw-r--r-- | src/shutdown/s6-linux-init-shutdownd.c | 8 |
1 files changed, 4 insertions, 4 deletions
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") ; |