summaryrefslogtreecommitdiff
path: root/src/libstddjb/child_spawn-internal.h
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-06-28 21:27:29 +0000
committerLaurent Bercot <ska@appnovation.com>2023-06-28 21:27:29 +0000
commit28e09b5eb76919122f8baf57899154b3dd5fdaa0 (patch)
tree21559ec98d7f0f876fa0e2a5115744e396fd68d0 /src/libstddjb/child_spawn-internal.h
parentd64a3751ca805c08bfda6a330d73a09e87e993c0 (diff)
downloadskalibs-28e09b5eb76919122f8baf57899154b3dd5fdaa0.tar.xz
Add workaround for bad QoI posix_spawn()
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libstddjb/child_spawn-internal.h')
-rw-r--r--src/libstddjb/child_spawn-internal.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libstddjb/child_spawn-internal.h b/src/libstddjb/child_spawn-internal.h
new file mode 100644
index 0000000..b0f701c
--- /dev/null
+++ b/src/libstddjb/child_spawn-internal.h
@@ -0,0 +1,16 @@
+/* ISC license. */
+
+#ifndef CHILD_SPAWN_INTERNAL_H
+#define CHILD_SPAWN_INTERNAL_H
+
+#include <skalibs/sysdeps.h>
+
+#ifdef SKALIBS_HASPOSIXSPAWNEARLYRETURN
+
+#include <sys/types.h>
+
+extern pid_t child_spawn_workaround (pid_t, int const *) ; /* closes the pipe */
+
+#endif
+
+#endif