aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2007-08-29 09:51:37 +0000
committerWerner Koch <[email protected]>2007-08-29 09:51:37 +0000
commitb13587ef167d58f960270fbcef674d8c919ba8dc (patch)
treef8ec6df5208e0f6dc50941d2f833ee2b3803e7ba /common/exechelp.h
parentAdd more passphrase policy rules. (diff)
downloadgnupg-b13587ef167d58f960270fbcef674d8c919ba8dc.tar.gz
gnupg-b13587ef167d58f960270fbcef674d8c919ba8dc.zip
New command --check-programs for gpgconf.
Diffstat (limited to 'common/exechelp.h')
-rw-r--r--common/exechelp.h6
1 files changed, 4 insertions, 2 deletions
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