]> git.ipfire.org Git - thirdparty/systemd.git/commit
process-util: add new safe_fork() flag for connecting stdout to stderr
authorLennart Poettering <lennart@poettering.net>
Mon, 6 May 2019 20:38:43 +0000 (22:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 4 Dec 2019 09:59:42 +0000 (10:59 +0100)
commit8987afc4d12cce4f8b89c6d963aec8f44bf3cc45
tree30e866ad84c82200c65dde52344b919bd46d7d2f
parent7a509acc297ae39ae4d54637953e598c72ad8036
process-util: add new safe_fork() flag for connecting stdout to stderr

This adds a new safe_fork() flag. If set the child process' fd 1 becomes
fd 2 of the caller. This is useful for invoking tools (such as various
mkfs/fsck implementations) that output status messages to stdout, but
which we invoke and don't want to pollute stdout with their output.
src/basic/process-util.c
src/basic/process-util.h