summaryrefslogtreecommitdiffstats
path: root/g13
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-06-09 18:53:51 +0200
committerWerner Koch <wk@gnupg.org>2010-06-09 18:53:51 +0200
commitc3f08dcb7266efeac84f5f720ec0a353a45e950d (patch)
tree51501aa7d0e6dadb80576a1e982fdfde871bd2ad /g13
parent2010-06-08 Marcus Brinkmann <marcus@g10code.de> (diff)
downloadgnupg2-c3f08dcb7266efeac84f5f720ec0a353a45e950d.tar.xz
gnupg2-c3f08dcb7266efeac84f5f720ec0a353a45e950d.zip
Merged Dirmngr with GnuPG.
A few code changes to support dirmngr.
Diffstat (limited to 'g13')
-rw-r--r--g13/be-encfs.c3
-rw-r--r--g13/runner.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/g13/be-encfs.c b/g13/be-encfs.c
index 524f09e6b..fb695e1be 100644
--- a/g13/be-encfs.c
+++ b/g13/be-encfs.c
@@ -304,7 +304,8 @@ run_encfs_tool (ctrl_t ctrl, enum encfs_cmds cmd,
close (outbound[1]);
if (pid != (pid_t)(-1))
{
- gnupg_wait_process (pgmname, pid, NULL);
+ gnupg_wait_process (pgmname, pid, 0, NULL);
+ gnupg_release_process (pid);
}
runner_release (runner);
encfs_handler_cleanup (parm);
diff --git a/g13/runner.c b/g13/runner.c
index 18293e10c..3ffe523ca 100644
--- a/g13/runner.c
+++ b/g13/runner.c
@@ -165,7 +165,8 @@ runner_release (runner_t runner)
arbitrary NAME of the runner object. However it does not
matter because that information is only used for
diagnostics.) */
- gnupg_wait_process (runner->name, runner->pid, NULL);
+ gnupg_wait_process (runner->name, runner->pid, 0, NULL);
+ gnupg_release_process (runner->pid);
}
xfree (runner->name);
@@ -370,7 +371,8 @@ runner_thread (void *arg)
int exitcode;
log_debug ("runner thread waiting ...\n");
- err = gnupg_wait_process (runner->name, runner->pid, &exitcode);
+ err = gnupg_wait_process (runner->name, runner->pid, 0, &exitcode);
+ gnupg_release_process (runner->pid);
runner->pid = (pid_t)(-1);
if (err)
log_error ("running `%s' failed (exitcode=%d): %s\n",