Module Name: src Committed By: christos Date: Thu Feb 2 20:01:36 UTC 2017
Modified Files: src/etc: rc Log Message: set 7 and 8 to close on exec. To generate a diff of this commit: cvs rdiff -u -r1.170 -r1.171 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.170 src/etc/rc:1.171 --- src/etc/rc:1.170 Tue Jul 29 16:39:16 2014 +++ src/etc/rc Thu Feb 2 15:01:36 2017 @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: rc,v 1.170 2014/07/29 20:39:16 apb Exp $ +# $NetBSD: rc,v 1.171 2017/02/02 20:01:36 christos Exp $ # # rc -- # Run the scripts in /etc/rc.d with rcorder, and log output @@ -65,6 +65,7 @@ _rc_original_stdout_fd=7; export _rc_ori _rc_original_stderr_fd=8; export _rc_original_stderr_fd eval "exec ${_rc_original_stdout_fd}>&1" eval "exec ${_rc_original_stderr_fd}>&2" +fdflags -s cloexec 7 8 # # rc_real_work