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

 
 

bug #38568: ForkWindow: fix race with pty creation

Submitted by:  Stas Sergeev <stsp>
Submitted on:  Fri 22 Mar 2013 11:35:31 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: None
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 22 Mar 2013 11:35:31 AM UTCstspAttached File-=>Added 0001-ForkWindow-fix-race-with-pty-creation.patch, #27652

    Back to the top


    Powered by Savane 3.1-cleanup