Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc set cloexec to the rc postprocessor fd (rudolf in tech-u...
details: https://anonhg.NetBSD.org/src/rev/f7b9c8be7aa4
branches: trunk
changeset: 352196:f7b9c8be7aa4
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 20 16:02:48 2017 +0000
description:
set cloexec to the rc postprocessor fd (rudolf in tech-userlevel)
diffstat:
etc/rc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r a70176195902 -r f7b9c8be7aa4 etc/rc
--- a/etc/rc Mon Mar 20 15:51:41 2017 +0000
+++ b/etc/rc Mon Mar 20 16:02:48 2017 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: rc,v 1.172 2017/02/02 20:49:55 christos Exp $
+# $NetBSD: rc,v 1.173 2017/03/20 16:02:48 christos Exp $
#
# rc --
# Run the scripts in /etc/rc.d with rcorder, and log output
@@ -87,6 +87,7 @@
_rc_postprocessor_fd=9 ; export _rc_postprocessor_fd
_rc_pid=$$ ; export _rc_pid
eval "exec ${_rc_postprocessor_fd}>&1"
+ fdflags -s +cloexec 9
# Print a metadata line when we exit
#
Home |
Main Index |
Thread Index |
Old Index