diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-11 15:09:33 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-11 15:09:53 -0800 |
commit | 9d6c4fa6780585d0a9a2a2a6709dbf9c0ac376ff (patch) | |
tree | e080d3b182d8ec3a9bfc5e8ca6a656f380289e71 /postfork.h | |
parent | b66233de786ec1b136c84fb2ec0afcce0e107e00 (diff) |
Make do_builtin_io multi-fork safe, moved it to postfork.cpp
Diffstat (limited to 'postfork.h')
-rw-r--r-- | postfork.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -65,6 +65,9 @@ int setup_child_process(job_t *j, process_t *p); */ pid_t execute_fork(bool wait_for_threads_to_die); +/* Perform output from builtins. Returns true on success. */ +bool do_builtin_io(const char *out, size_t outlen, const char *err, size_t errlen); + /** Report an error from failing to exec or posix_spawn a command */ void safe_report_exec_error(int err, const char *actual_cmd, char **argv, char **envv); |