NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/52371: startup complains about fdflags



>Number:         52371
>Category:       misc
>Synopsis:       startup complains about fdflags
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 06 03:10:00 +0000 2017
>Originator:     Edgar Pettijohn
>Release:        NetBSD 7.1 Wed Jul  5 22:06:18 CDT 2017
>Organization:
>Environment:
7.1 NetBSD 7.1 (GENERIC.201703111743Z) amd64
>Description:
During startup rc complains twice about fdflags not existing. I couldn't find a manual for fdflags to know what its supposed to do.
>How-To-Repeat:
reboot
>Fix:
Index: rc
===================================================================
RCS file: /cvsroot/src/etc/rc,v
retrieving revision 1.173
diff -u -r1.173 rc
--- rc  20 Mar 2017 16:02:48 -0000      1.173
+++ rc  6 Jul 2017 03:04:07 -0000
@@ -65,7 +65,6 @@
 _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
@@ -87,7 +86,6 @@
        _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