summaryrefslogtreecommitdiff
path: root/src/activate
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-24 00:54:40 +0100
committerLennart Poettering <lennart@poettering.net>2017-12-25 11:48:21 +0100
commitd8caff6db672ab0f2d8064c61f5ef0e8e8d288ca (patch)
treed57c58eeac6c5854938feb880d34b6c1d29d9ff9 /src/activate
parent395195bb42abc37a25fea02f77af5fcce602e371 (diff)
downloadsystemd-d8caff6db672ab0f2d8064c61f5ef0e8e8d288ca.tar.gz
terminal-util: open /dev/null with O_CLOEXEC in make_stdio_null()
Ultimately, O_CLOEXEC should be off in fd 0, 1, 2, but when we open /dev/null here it's unlikely to be < 0, and after dupping the fd to 0, 1, 2 we turn off O_CLOEXEC explicitly anyway. Unless we know that what we are about to open will return 0, 1 or 2 we should always set O_CLOEXEC in order to be safe to other threads forking of subprocesses at the wrong moment.
Diffstat (limited to 'src/activate')
0 files changed, 0 insertions, 0 deletions