diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-05-21 21:09:11 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2021-05-21 21:09:11 +0000 |
commit | 7a8b204c948f719038a74a7a837d626661b115eb (patch) | |
tree | 452e3397c1ae79673940ffb161395ebf116fb199 /src/conn-tools/s6-ipcserverd.c | |
parent | 3bf2f9e26771eae5657243471227f975cc990797 (diff) | |
download | s6-7a8b204c948f719038a74a7a837d626661b115eb.tar.xz |
Trivial syscall number optimization
Diffstat (limited to 'src/conn-tools/s6-ipcserverd.c')
-rw-r--r-- | src/conn-tools/s6-ipcserverd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |