From a646c96d5f7ec4b4e0bb538a41fc202c2cdb3309 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 8 Sep 2023 08:03:58 +0000 Subject: Make child_spawn_workaround public Signed-off-by: Laurent Bercot --- src/include/skalibs/djbunix.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/include') diff --git a/src/include/skalibs/djbunix.h b/src/include/skalibs/djbunix.h index 1b08f77..1ac2d03 100644 --- a/src/include/skalibs/djbunix.h +++ b/src/include/skalibs/djbunix.h @@ -169,6 +169,8 @@ extern int hiercopy_loose (char const *, char const *) ; extern int hiercopy_loose_tmp (char const *, char const *, stralloc *) ; extern int hiercopy_internal (char const *, char const *, stralloc *, unsigned int) ; + + /* Simple spawn functions with 0 or 1 communicating fds. */ extern pid_t child_spawn0 (char const *, char const *const *, char const *const *) ; @@ -206,4 +208,10 @@ extern pid_t child_spawn3 (char const *, char const *const *, char const *const extern pid_t child_spawn (char const *, char const *const *, char const *const *, int *, unsigned int) ; + + /* Work around buggy posix_spawn */ + +extern pid_t child_spawn_workaround (pid_t, int const *) ; /* closes the pipe if defined */ + + #endif -- cgit v1.2.3