s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

commit ded0e56eb088873c2c05589ae9ab095a573450eb
parent e3b7cbc8648c098f1ad372251a1d2ec775ff135d
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Sun,  5 Dec 2021 00:23:20 +0000

 s6-socklog: also ensure stderr is open

Signed-off-by: Laurent Bercot <ska@appnovation.com>

Diffstat:
Msrc/daemontools-extras/s6-socklog.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/daemontools-extras/s6-socklog.c b/src/daemontools-extras/s6-socklog.c @@ -114,7 +114,8 @@ int main (int argc, char const *const *argv) } close(0) ; - if (fcntl(1, F_GETFD) < 0) strerr_dief1sys(100, "invalid stdout") ; + if (fcntl(1, F_GETFD) < 0) strerr_dief2sys(100, "invalid std", "out") ; + if (fcntl(2, F_GETFD) < 0) strerr_dief2sys(100, "invalid std", "err") ; if (usock) { x[2].fd = ipc_datagram_nbcoe() ;