diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-17 21:54:00 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-18 01:36:28 +0100 |
commit | 20b63d12b533daf2e9b2936ffb03074861e1673e (patch) | |
tree | 8c21608e7d9e5a767da287b7fd04d7c432e1e0e4 /man | |
parent | 82e6c50c473f4be8df77c7a510577f1975eedddb (diff) |
util: in make_stdio() use dup2() rather than dup3()
dup3() allows setting O_CLOEXEC which we are not interested in. However,
it also fails if called with the same fd as input and output, which is
something we don't want. Hence use dup2().
Also, we need to explicitly turn off O_CLOEXEC for the fds, in case the
input fd was O_CLOEXEC and < 3.
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions