From 7a8b204c948f719038a74a7a837d626661b115eb Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 21 May 2021 21:09:11 +0000 Subject: Trivial syscall number optimization --- src/conn-tools/s6-ipcserverd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conn-tools') diff --git a/src/conn-tools/s6-ipcserverd.c b/src/conn-tools/s6-ipcserverd.c index 1c834e5..1a4a2d1 100644 --- a/src/conn-tools/s6-ipcserverd.c +++ b/src/conn-tools/s6-ipcserverd.c @@ -235,7 +235,7 @@ static void run_child (int s, uid_t uid, gid_t gid, unsigned int num, char const unsigned int n = 0 ; char fmt[65 + UID_FMT + GID_FMT + UINT_FMT + rplen] ; PROG = "s6-ipcserver (child)" ; - if ((fd_move(0, s) < 0) || (fd_copy(1, 0) < 0)) + if ((fd_move(1, s) < 0) || (fd_copy(0, 1) < 0)) strerr_diefu1sys(111, "move fds") ; memcpy(fmt+n, "PROTO=IPC\0IPCREMOTEEUID", 23) ; n += 23 ; if (flaglookup) -- cgit v1.2.3