[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[screen-devel] [bug #52259] Do not close all inherited fds
From: |
Ilya Basin |
Subject: |
[screen-devel] [bug #52259] Do not close all inherited fds |
Date: |
Sat, 21 Oct 2017 02:27:17 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0 |
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/
- [screen-devel] [bug #52259] Do not close all inherited fds,
Ilya Basin <=