[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[screen-devel] [bug #38568] ForkWindow: fix race with pty creation
From: |
Stas Sergeev |
Subject: |
[screen-devel] [bug #38568] ForkWindow: fix race with pty creation |
Date: |
Fri, 22 Mar 2013 11:35:32 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0 |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [screen-devel] [bug #38568] ForkWindow: fix race with pty creation,
Stas Sergeev <=