URL:
<http://savannah.gnu.org/bugs/?38568>
Summary: ForkWindow: fix race with pty creation
Project: GNU Screen
Submitted by: stsp
Submitted on: Птн 22 Мар 2013 11:35:31
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: None
Fixed Release: None
Planned Release: None
Work Required: None
_______________________________________________________
Details:
Hi.
There is a race condition exist, that is the parent
process can be too quick to do "exec" and "kill" in
a rapid succession. In this case the "kill" may close
the pty master when child have not yet opened slave.
The attached patch is a hackish attempt to protect
the pty creation with semaphore.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Птн 22 Мар 2013 11:35:31 Name:
0001-ForkWindow-fix-race-with-pty-creation.patch Size: 1kB By: stsp
<http://savannah.gnu.org/bugs/download.php?file_id=27652>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38568>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/