usign-exec: close writing end of pipe early in parent process
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sat, 16 May 2020 16:27:51 +0000 (18:27 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Sat, 16 May 2020 16:27:51 +0000 (18:27 +0200)
commit077feb5b5824beb3af28385d350e2398ffe46f27
tree0acd505e6b2d754948679c3b0d26a5f2e60719dd
parent7ec4bb764e1eb58f5d499d3b47f97bfc9a09eb0a
usign-exec: close writing end of pipe early in parent process

When the child process exited without producing output (for example
because usign was not found), the parent process would hang forever in
read(). By closing the writing end early in the parent process, read
will return as soon as no writing FDs are left - that is, when the child
process has exited.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
usign-exec.c