From 37c1f0fe544551d630b49b4a810a729c07ac825e Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 9 Nov 2009 21:17:58 +0000 Subject: [PATCH] 2009-11-09 Marcus Brinkmann * engine-gpgsm.c (gpgsm_new): Close server side FDs. --- src/ChangeLog | 4 ++++ src/engine-gpgsm.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 943e7d7..5caddae 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-11-09 Marcus Brinkmann + + * engine-gpgsm.c (gpgsm_new): Close server side FDs. + 2009-11-06 Marcus Brinkmann * gpgme-tool.c (struct gpgme_tool): New members write_data and diff --git a/src/engine-gpgsm.c b/src/engine-gpgsm.c index 87d577b..d140615 100644 --- a/src/engine-gpgsm.c +++ b/src/engine-gpgsm.c @@ -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) -- 2.26.2