2001-12-13 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Thu, 13 Dec 2001 22:02:08 +0000 (22:02 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Thu, 13 Dec 2001 22:02:08 +0000 (22:02 +0000)
commit7033cf17fc144b90f5da386c16405765d400aba7
treef10e2fbc00f311f83b6c9378e2bea2dba0dc7140
parent4992a925d0aa159555aa839b4d09019c8d7064ef
2001-12-13  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (close_notify_handler): New function.
(_gpgme_gpgsm_new): Manage the file descriptors a
bit differently.  Do not set close-on-exec flags.
(_gpgme_gpgsm_op_decrypt): Do not set message_fd
to -1, this is done by the close handler.
(_gpgme_gpgsm_op_encrypt): Likewise.
(_gpgme_gpgsm_op_import): Likewise (also for output_fd).
(_gpgme_gpgsm_op_keylist): Likewise (also for input_fd and output_fd).
(_gpgme_gpgsm_op_sign): Likewise.
(_gpgme_gpgsm_op_verify): Likewise, but for output_fd.

* posix-io.c (_gpgme_io_pipe): Set the close-on-exec flag for the
non-inherited file descriptor index of the pipe.
trunk/gpgme/ChangeLog
trunk/gpgme/engine-gpgsm.c
trunk/gpgme/posix-io.c