scd,dirmngr: Keep the standard fds when daemonizing.
authorWerner Koch <wk@gnupg.org>
Wed, 16 Nov 2016 20:17:47 +0000 (21:17 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 16 Nov 2016 20:17:47 +0000 (21:17 +0100)
commit4839e6d002a8ad1f7d3260792c3c9641e258f342
treea578efc00d6a60dc6ddc36372e41948b92a0d1a2
parentc4506a3f15bba5d257cb4c6738800c5e00ecc9a2
scd,dirmngr: Keep the standard fds when daemonizing.

* dirmngr/dirmngr.c (main): Before calling setsid do not close the
standard fds but connect them to /dev/null.
* scd/scdaemon.c (main): Ditto.  Noet that the old test for a log
stream was even reverted.

--

Note that this was fixed for gpg-agent 10 years ago on 2006-11-09.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/dirmngr.c
scd/scdaemon.c