From b13587ef167d58f960270fbcef674d8c919ba8dc Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 29 Aug 2007 09:51:37 +0000 Subject: New command --check-programs for gpgconf. --- common/exechelp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common/exechelp.h') diff --git a/common/exechelp.h b/common/exechelp.h index ff7e59d39..7abc03708 100644 --- a/common/exechelp.h +++ b/common/exechelp.h @@ -52,8 +52,10 @@ gpg_error_t gnupg_spawn_process_fd (const char *pgmname, /* Wait for the process identified by PID to terminate. PGMNAME should be the same as supplied to the spawn fucntion and is only used for diagnostics. Returns 0 if the process succeded, GPG_ERR_GENERAL - for any failures of the spawned program or other error codes.*/ -gpg_error_t gnupg_wait_process (const char *pgmname, pid_t pid); + for any failures of the spawned program or other error codes. If + EXITCODE is not NULL the exit code of the process is stored at this + address or -1 if it could not be retrieved. */ +gpg_error_t gnupg_wait_process (const char *pgmname, pid_t pid, int *exitcode); /* Spawn a new process and immediatley detach from it. The name of -- cgit v1.2.3