file: patch process stdin to /dev/null
authorJo-Philipp Wich <jo@mein.io>
Fri, 21 Dec 2018 08:09:55 +0000 (09:09 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 26 May 2020 14:21:13 +0000 (16:21 +0200)
commitcd09c5f3512c9d6dca0c0ed7144cb1a994672454
tree244aec5cdb0489aa5614d574a36c415e269b7c6b
parentefbcedb76186d4e86c4a538ea93289e7c10a88cb
file: patch process stdin to /dev/null

This prevents broken pipe errors in executed child processes that
attempt to access stdin.

Suggested-by: Vytautas Virvičius <vy.virvicius@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 67118a6b334cd50c9f39a0c04506befd49bf592a)
file.c