NetBSD-Bugs archive

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

Re: bin/48988 Strange init-inherited? descriptors on netbsd-6



The following reply was made to PR bin/48988; it has been noted by GNATS.

From: Michael van Elst <mlelstv%serpens.de@localhost>
To: gnats-bugs%gnats.netbsd.org@localhost
Cc: 
Subject: Re: bin/48988 Strange init-inherited? descriptors on netbsd-6
Date: Mon, 15 Dec 2014 10:14:00 +0100

 The reason for the open file descriptors is the rc framework
 that tries to handle logging and interactive I/O.
 
 Currently 3 file descriptors are opened additionally when running
 an rc script:
 
 fd 7 -> $_rc_original_stdout_fd
 fd 8 -> $_rc_original_stderr_fd
 fd 9 -> $_rc_postprocessor_fd
 
 It's not always possible to close the descriptors, but for
 standard scripts that are executed in a subprocess that
 should be possible.
 
 N.B. lvm prints ugly warning messages when it sees the
 descriptors.
 
 
 Greetings,
 -- 
                                 Michael van Elst
 Internet: mlelstv%serpens.de@localhost
                                 "A potential Snark may lurk in every tree."
 


Home | Main Index | Thread Index | Old Index