Module Name: src
Committed By: christos
Date: Mon Mar 20 16:02:48 UTC 2017
Modified Files:
src/etc: rc
Log Message:
set cloexec to the rc postprocessor fd (rudolf in tech-userlevel)
To generate a diff of this commit:
cvs rdiff -u -r1.172 -r1.173 src/etc/rc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/rc
diff -u src/etc/rc:1.172 src/etc/rc:1.173
--- src/etc/rc:1.172 Thu Feb 2 15:49:55 2017
+++ src/etc/rc Mon Mar 20 12:02:48 2017
@@ -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_real_work()
_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
#