diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-09-08 08:03:58 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-09-08 08:03:58 +0000 |
commit | a646c96d5f7ec4b4e0bb538a41fc202c2cdb3309 (patch) | |
tree | a5260aa8fe9c4f1ee2772d318024b5cb208f9bf2 /src/include | |
parent | 1f2d5f95684e93f8523e369ef1fed7a75c444082 (diff) | |
download | skalibs-a646c96d5f7ec4b4e0bb538a41fc202c2cdb3309.tar.xz |
Make child_spawn_workaround public
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/skalibs/djbunix.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |