From 5ba4f6047b84e4cfdb3e6bc88e574ca7a455da81 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 14 Jan 2016 18:20:14 +0100 Subject: 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 --- common/exechelp.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/exechelp.h') 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 -- cgit v1.2.3