From: Marcus Brinkmann Date: Mon, 9 Nov 2009 21:17:58 +0000 (+0000) Subject: 2009-11-09 Marcus Brinkmann X-Git-Tag: gpgme-1.3.0~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37c1f0fe544551d630b49b4a810a729c07ac825e;p=gpgme.git 2009-11-09 Marcus Brinkmann * engine-gpgsm.c (gpgsm_new): Close server side FDs. --- 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)