protect pipe fd with O_CLOEXEC
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 12 Feb 2018 09:48:07 +0000 (10:48 +0100)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 14 Aug 2018 14:53:34 +0000 (16:53 +0200)
commita30f9a2227383b50d051c040df9120e7dad35325
treeb1e65a14a796c5608484774d7030b4d2fcf81b37
parentf2da42aa412ab9e43f62d9781573bf6053483301
protect pipe fd with O_CLOEXEC

On the parent, prevent other exec()s than the one in our child
from carrying over the fd. The pipe wrapper may be long lived
for this to become a problem.
src/pipestream.cpp