URL:
  <http://savannah.gnu.org/bugs/?52259>

                 Summary: Do not close all inherited fds
                 Project: GNU Screen
            Submitted by: basinilya
            Submitted on: Sat 21 Oct 2017 06:27:16 AM UTC
                Category: Feature Request
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.6.1
           Fixed Release: None
         Planned Release: None
           Work Required: None

    _______________________________________________________

Details:

In screen.c there's the comment:

    /*
    *  First, close all unused descriptors
    *  (otherwise, we might have problems with the select() call)
    */
    closeallfiles(0);

This closes everything except 0,1, and 2. Will it hurt if we let fds 3..63
survive? I need to pass an anonymous pipe for synchronization between the
caller of screen and the commands launched inside screen.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52259>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to