diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-04-06 01:40:50 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-04-06 01:40:50 +0000 |
| commit | 7dd091e8ced5576981edf40407063460ab5cdb75 (patch) | |
| tree | f31829de2c7df72aabd081f7845c1f0d07d5416f /src | |
| parent | 48fcd40f9cea9d6635a4b3d70cc538218edfdba4 (diff) | |
| download | s6-7dd091e8ced5576981edf40407063460ab5cdb75.tar.gz | |
Readability improvement in s6-supervise.c
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/supervision/s6-supervise.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c index 9f56c47..eeac5a0 100644 --- a/src/supervision/s6-supervise.c +++ b/src/supervision/s6-supervise.c @@ -794,7 +794,8 @@ int main (int argc, char const *const *argv) progname[proglen] = ' ' ; memcpy(progname + proglen + 1, argv[1], namelen + 1) ; PROG = progname ; - if (!fd_sanitize()) strerr_diefu1sys(111, "sanitize stdin and stdout") ; + if (!fd_sanitize()) + strerr_diefu1sys(111, "sanitize stdin and stdout") ; { struct rlimit rl ; if (getrlimit(RLIMIT_NOFILE, &rl) == -1) @@ -804,7 +805,8 @@ int main (int argc, char const *const *argv) x[1].fd = control_init() ; x[0].fd = selfpipe_init() ; if (x[0].fd == -1) strerr_diefu1sys(111, "init selfpipe") ; - if (!sig_altignore(SIGPIPE)) strerr_diefu1sys(111, "ignore SIGPIPE") ; + if (!sig_altignore(SIGPIPE)) + strerr_diefu1sys(111, "ignore SIGPIPE") ; { sigset_t set ; sigemptyset(&set) ; |
