diff options
author | Ralph Boehme <slow@samba.org> | 2017-05-16 18:36:03 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2017-07-03 19:59:07 +0200 |
commit | 12a3eb7b5e9a2fd9f5d03a6e80e5f33fcfd3b811 (patch) | |
tree | 4704e6e61c684097946c67e65b37e4d4988a0108 /lib/util/util_runcmd.h | |
parent | 844db654987936cf257d3fa8a256e43c4c96d7e7 (diff) | |
download | samba-12a3eb7b5e9a2fd9f5d03a6e80e5f33fcfd3b811.tar.gz |
lib/util: make use of tfork in samba_runcmd_send()
This makes it possible to use samba_runcmd_send() in processes like smbd
that install a SIGCHLD handler that reaps all terminated children.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/util/util_runcmd.h')
-rw-r--r-- | lib/util/util_runcmd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/util/util_runcmd.h b/lib/util/util_runcmd.h index 26fdbc66042..55329615a25 100644 --- a/lib/util/util_runcmd.h +++ b/lib/util/util_runcmd.h @@ -27,9 +27,11 @@ struct samba_runcmd_state { int stderr_log_level; struct tevent_fd *fde_stdout; struct tevent_fd *fde_stderr; - int fd_stdin, fd_stdout, fd_stderr; + struct tevent_fd *fde_status; + int fd_stdin, fd_stdout, fd_stderr, fd_status; char *arg0; pid_t pid; + struct tfork *tfork; char buf[1024]; uint16_t buf_used; }; |