about summary refs log tree commit homepage
path: root/lib/PublicInbox/xap_helper.h
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-09-07 00:54:09 +0000
committerEric Wong <e@80x24.org>2023-09-07 05:42:39 +0000
commitd1e1605a4de96de2a5ba2c17b4bc183b83f57905 (patch)
tree35cc51956cb7f69b5fbc11efba86d498e26208f1 /lib/PublicInbox/xap_helper.h
parentc7a640f9c55dbe80a247f5dbdbaaf0ec35dd0475 (diff)
downloadpublic-inbox-d1e1605a4de96de2a5ba2c17b4bc183b83f57905.tar.gz
*sigh*  I only noticed this when running `make check-run' under
OpenBSD.
Diffstat (limited to 'lib/PublicInbox/xap_helper.h')
-rw-r--r--lib/PublicInbox/xap_helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/xap_helper.h b/lib/PublicInbox/xap_helper.h
index 73590efd..70760367 100644
--- a/lib/PublicInbox/xap_helper.h
+++ b/lib/PublicInbox/xap_helper.h
@@ -1168,9 +1168,9 @@ int main(int argc, char *argv[])
         if (!worker_pids) err(EXIT_FAILURE, "calloc");
 
         if (pipe(pipefds)) err(EXIT_FAILURE, "pipe");
-        int fl = fcntl(F_GETFL, pipefds[1]);
+        int fl = fcntl(pipefds[1], F_GETFL);
         if (fl == -1) err(EXIT_FAILURE, "F_GETFL");
-        if (fcntl(F_SETFL, pipefds[1], fl | O_NONBLOCK))
+        if (fcntl(pipefds[1], F_SETFL, fl | O_NONBLOCK))
                 err(EXIT_FAILURE, "F_SETFL");
 
         CHECK(int, 0, sigdelset(&pset, SIGCHLD));