Make sure a spawned process has all standard fds connected.
authorWerner Koch <wk@gnupg.org>
Thu, 10 Apr 2014 09:15:40 +0000 (11:15 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 10 Apr 2014 09:15:40 +0000 (11:15 +0200)
commit617d3be629229cbebfdc2d26a4e854bc4fe38a68
treeb902d19f29973c804ab7268af6d4abef91cff536
parent766355b5d4f63261c428531fdbdafb8b67de9369
Make sure a spawned process has all standard fds connected.

* src/posix-io.c (_gpgme_io_spawn): dup /dev/null also to unsued
stdout.
--

Better be sure that stdout of a spawned process is connected to stdout
so that the process does not run into a write error if it writes to
stdout.  AFAICS we always use a connected stdout; thus this is only
for correctness.
src/posix-io.c