NetBSD-Bugs archive

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

Re: misc/49738 rc.subr leaks filedescriptors



    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