NetBSD-Bugs archive

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

Re: misc/49738 rc.subr leaks filedescriptors



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

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: Michael van Elst <mlelstv%serpens.de@localhost>
Cc: Christos Zoulas <christos%zoulas.com@localhost>, gnats-bugs%NetBSD.org@localhost,
        misc-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
        netbsd-bugs%netbsd.org@localhost
Subject: Re: misc/49738 rc.subr leaks filedescriptors
Date: Fri, 21 Oct 2016 21:05:25 +0700

     Date:        Fri, 21 Oct 2016 07:28:00 +0200
     From:        Michael van Elst <mlelstv%serpens.de@localhost>
     Message-ID:  <20161021052756.GA1762%serpens.de@localhost>
 
   | On Fri, Oct 21, 2016 at 06:25:35AM +0700, Robert Elz wrote:
   | 
   | > An alternative would be to add a new function to the rc system for scripts
   | > to call
   | 
   | You could simply close the descriptors when calling the rc script.
 
 If it is run in a sub-shell, yes, but not for those that are sourced
 directly.   The rc system is complex...
 
 kre
 


Home | Main Index | Thread Index | Old Index