bugGNU Screen - Bugs: bug #38568, ForkWindow: fix race with pty...

 
 

bug #38568: ForkWindow: fix race with pty creation

Submitter:  Stas Sergeev <stsp>
Submitted:  Fri 22 Mar 2013 11:35:31 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 22 Mar 2013 11:35:31 AM UTC, original submission:  

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.

Stas Sergeev <stsp>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by stsp (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-03-22 stsp Attached File- Added 0001-ForkWindow-fix-race-with-pty-creation.patch, #27652

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code