process-util: turn off O_NONBLOCK on stdio fds when rearranging fds
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Jan 2024 21:25:22 +0000 (22:25 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Jan 2024 22:23:42 +0000 (23:23 +0100)
commit3b1e80f7cb49971b98552f064c494f98b6243505
treeb8f1e7c131cd65282f5fe836d3f23eab282ca42a
parentb20e9dc51596f787b0e0c6c2d4d21485e8d670c9
process-util: turn off O_NONBLOCK on stdio fds when rearranging fds

We often create our fds O_NONBLOCK, but when we want to invoke some
program with them as stdin/stdout/stderr we really should turn it off
again.
src/basic/fd-util.c
src/basic/fd-util.h
src/basic/process-util.c