bugGNU Screen - Bugs: bug #52248, Screen doesn't release pty...

 
 

bug #52248: Screen doesn't release pty TIOCEXCL on quit

Submitter:  None
Submitted:  Wed 18 Oct 2017 11:19:11 PM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  None
Fixed Release:  None Planned Release:  5.0.0
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 28 Dec 2019 07:39:58 PM UTC, comment #3: 

David, thanks for your patch. It's in 'master' now.

Cheers,
Alex

Alexander Naumov <anaumov>
Group administrator
Sat 14 Dec 2019 02:35:50 AM UTC, comment #2: 

It appears that for a plain TTY device, screen sets the exclusive flag when opening it, but relies on sending a break to unlock the device.

The desired behavior is to always unlock the device when exiting regardless of sending a break.

David Dorfman <d3dave>
Sat 14 Dec 2019 02:04:35 AM UTC, comment #1: 

I have just encountered this exact same issue. The symptoms are incredibly mysterious.

This happens only with screen. Other tools (picocom, cu) do not enable exclusive locking on the PTY, so they work ok. After connecting to the PTY with screen, other tools stop working as well.

David Dorfman <d3dave>
Wed 18 Oct 2017 11:19:11 PM UTC, original submission:  

In pty.c, ioctl TIOCEXCL takes exclusive control of the pty. Screen should call ioctl TIOCNXCL to release that control on close. This manifests as ptys getting mysteriously broken after using them with screen.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #48059:  0001-Disable-exclusive-mode-on-TTY-device-when-closing.patch added by d3dave (2KiB - application/octet-stream - [PATCH] Disable exclusive mode on TTY device when closing)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by anaumov (Posted a comment)
  • -email is unavailable- added by d3dave (Posted a comment)
  • -email is unavailable- added by d3dave (Voted in favor of this 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.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-02-16 anaumov Planned ReleaseNone 5.0.0
    2019-12-28 anaumov CategoryNone Program Logic
        StatusNone Fixed
        Open/ClosedOpen Closed
    2019-12-14 d3dave Attached File- Added 0001-Disable-exclusive-mode-on-TTY-device-when-closing.patch, #48059
    2019-12-14 d3dave Carbon-Copy- Added d3dave

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code