handle pipe termination separately depending on whether a shell is present
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Wed, 3 Jan 2018 16:16:43 +0000 (17:16 +0100)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 14 Aug 2018 14:53:34 +0000 (16:53 +0200)
commit17b459b3c800f81801d70c9da644deb72b1230c5
treed4aa423be6f1f8fc490a9be51f0f4e7b5d5048e5
parent7f58145bec6195057092c63dfb336854053da1b7
handle pipe termination separately depending on whether a shell is present

Keep the child's pid around and wait() for it to perish in the
dtor of inpipestream. Return the error from closing the pipe or
terminating the process in the shell-free version. The mechanism
for retrieving the status does not allow to distinguish between
the two, so always prefer the latter.
src/pipestream.cpp
src/pipestream.hxx