2009-11-09 Marcus Brinkmann <marcus@g10code.de>

* engine-gpgsm.c (gpgsm_new): Close server side FDs.
This commit is contained in:
Marcus Brinkmann 2009-11-09 21:17:58 +00:00
parent 75f035e9d0
commit 37c1f0fe54
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2009-11-09 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (gpgsm_new): Close server side FDs.
2009-11-06 Marcus Brinkmann <marcus@g10code.de>
* gpgme-tool.c (struct gpgme_tool): New members write_data and

View File

@ -364,9 +364,9 @@ gpgsm_new (void **engine, const char *file_name, const char *home_dir)
/* assuan_pipe_connect in this case uses _gpgme_io_spawn which
closes the child fds for us. */
gpgsm->input_cb.server_fd = -1;
gpgsm->output_cb.server_fd = -1;
gpgsm->message_cb.server_fd = -1;
_gpgme_io_close (gpgsm->input_cb.server_fd);
_gpgme_io_close (gpgsm->output_cb.server_fd);
_gpgme_io_close (gpgsm->message_cb.server_fd);
err = _gpgme_getenv ("DISPLAY", &dft_display);
if (err)