[BACK]Return to rc CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/etc/rc between version 1.166.20.1 and 1.167

version 1.166.20.1, 2014/08/10 07:03:06 version 1.167, 2014/04/09 12:38:09
Line 84  rc_real_work()
Line 84  rc_real_work()
         # with redirected output.          # with redirected output.
         #          #
         _rc_postprocessor_fd=9 ; export _rc_postprocessor_fd          _rc_postprocessor_fd=9 ; export _rc_postprocessor_fd
         _rc_pid=$$ ; export _rc_pid  
         eval "exec ${_rc_postprocessor_fd}>&1"          eval "exec ${_rc_postprocessor_fd}>&1"
   
         # Print a metadata line when we exit          # Print a metadata line when we exit
Line 120  rc_real_work()
Line 119  rc_real_work()
         kill -0 $RC_PID >/dev/null 2>&1 || RC_PID=$$          kill -0 $RC_PID >/dev/null 2>&1 || RC_PID=$$
   
         #          #
         # As long as process $RC_PID is still running, send a "nop"  
         # metadata message to the postprocessor every few seconds.  
         # This should help flush partial lines that may appear when  
         # rc.d scripts that are NOT marked with "KEYWORD: interactive"  
         # nevertheless attempt to print prompts and wait for input.  
         #  
         (  
             # First detach from tty, to avoid intercepting SIGINFO.  
             eval "exec ${_rc_original_stdout_fd}<&-"  
             eval "exec ${_rc_original_stderr_fd}<&-"  
             exec </dev/null >/dev/null 2>&1  
             while kill -0 $RC_PID ; do  
                 print_rc_metadata "nop"  
                 sleep 3  
             done  
         ) &  
   
         #  
         # Get a list of all rc.d scripts, and use rcorder to choose          # Get a list of all rc.d scripts, and use rcorder to choose
         # what order to execute them.          # what order to execute them.
         #          #

Legend:
Removed from v.1.166.20.1  
changed lines
  Added in v.1.167

CVSweb <webmaster@jp.NetBSD.org>