distinguish child errors from failing to exec
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 12 Feb 2018 10:52:23 +0000 (11:52 +0100)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 14 Aug 2018 14:53:34 +0000 (16:53 +0200)
commit08199c66480e64cd7fa5e84bd8af5893191fda5f
tree660721467defd11b04109bab0604a87925d75f77
parenta30f9a2227383b50d051c040df9120e7dad35325
distinguish child errors from failing to exec

Use the old pipe/cloexec trick to separate errors from the spawned
program from such that occur before execv[p]e(). Only errors on
the far side of exec() may be handled by the user.
src/pipestream.cpp
test/test_pipestream.cpp