aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp.h
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-01-14 17:20:14 +0000
committerJustus Winter <[email protected]>2016-02-23 10:58:52 +0000
commit5ba4f6047b84e4cfdb3e6bc88e574ca7a455da81 (patch)
treeb27969273ef7f6f30a86e59ae03eab64ee8b9467 /common/exechelp.h
parentcommon/exechelp: Add general pipe function. (diff)
downloadgnupg-5ba4f6047b84e4cfdb3e6bc88e574ca7a455da81.tar.gz
gnupg-5ba4f6047b84e4cfdb3e6bc88e574ca7a455da81.zip
common/exechelp: Provide a way to wait for multiple processes.
* common/exechelp-posix.c (gnupg_wait_process): Generalize to 'gnupg_wait_processes'. * common/exechelp-w32.c (gnupg_wait_process): Likewise. * common/exechelp-w32ce.c (gnupg_wait_process): New function stub. * common/exechelp.h (gnupg_wait_process): New prototype. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'common/exechelp.h')
-rw-r--r--common/exechelp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/exechelp.h b/common/exechelp.h
index cdee300ef..82224fd2a 100644
--- a/common/exechelp.h
+++ b/common/exechelp.h
@@ -161,6 +161,10 @@ gpg_error_t gnupg_spawn_process_fd (const char *pgmname,
gpg_error_t gnupg_wait_process (const char *pgmname, pid_t pid, int hang,
int *r_exitcode);
+/* Like gnupg_wait_process, but for COUNT processes. */
+gpg_error_t gnupg_wait_processes (const char **pgmnames, pid_t *pids,
+ size_t count, int hang, int *r_exitcodes);
+
/* Kill a process; that is send an appropriate signal to the process.
gnupg_wait_process must be called to actually remove the process