From: Marcus Brinkmann Date: Fri, 23 Nov 2001 00:48:51 +0000 (+0000) Subject: 2001-11-23 Marcus Brinkmann X-Git-Tag: gpgme-1.2.0@1385~1244 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ec60ba44b94003dd79bd2a254f4a96bf0384d165;p=gpgme.git 2001-11-23 Marcus Brinkmann * engine-gpgsm.c (_gpgme_gpgsm_new): Set CLOEXEC flag for parent ends of the pipe. --- diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index f58faff..03a093a 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2001-11-23 Marcus Brinkmann + + * engine-gpgsm.c (_gpgme_gpgsm_new): Set CLOEXEC flag for parent + ends of the pipe. + 2001-11-22 Marcus Brinkmann * engine-gpgsm.c: Include stdlib.h and string.h. Also include, diff --git a/trunk/gpgme/engine-gpgsm.c b/trunk/gpgme/engine-gpgsm.c index 127014d..63f019a 100644 --- a/trunk/gpgme/engine-gpgsm.c +++ b/trunk/gpgme/engine-gpgsm.c @@ -34,6 +34,7 @@ #include #include #include +#include /* FIXME */ /* FIXME */ #include "../assuan/assuan-defs.h" @@ -126,6 +127,7 @@ _gpgme_gpgsm_new (GpgsmObject *r_gpgsm) goto leave; } gpgsm->input_fd = ip[1]; + fcntl (ip[1], F_SETFD, FD_CLOEXEC); /* FIXME */ gpgsm->input_fd_server = ip[0]; if (_gpgme_io_pipe (op, 1) < 0) { @@ -133,6 +135,7 @@ _gpgme_gpgsm_new (GpgsmObject *r_gpgsm) goto leave; } gpgsm->output_fd = op[0]; + fcntl (op[0], F_SETFD, FD_CLOEXEC); /* FIXME */ gpgsm->output_fd_server = op[1]; if (_gpgme_io_pipe (mp, 0) < 0) { @@ -140,6 +143,7 @@ _gpgme_gpgsm_new (GpgsmObject *r_gpgsm) goto leave; } gpgsm->message_fd = mp[1]; + fcntl (mp[1], F_SETFD, FD_CLOEXEC); /* FIXME */ gpgsm->message_fd_server = mp[0]; err = assuan_pipe_connect (&gpgsm->assuan_ctx,