Bug 1480460 - GNU screen gets killed on logout
GNU screen gets killed on logout
Status: NEW
Product: Fedora
Classification: Fedora
Component: screen (Show other bugs)
x86_64 Linux
unspecified Severity medium
: ---
: ---
Assigned To: Josef Ridky
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-08-11 03:46 EDT by Thomas Stephen Lee
Modified: 2018-05-22 01:03 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Thomas Stephen Lee 2017-08-11 03:46:41 EDT
Description of problem:

GNU screen gets killed if I detach GNU screen and log out.

Version-Release number of selected component (if applicable):


How reproducible:

1.  Login as user graphically
2.  open gnome-terminal
3.  $su - root
4.  $screen
5.  Detach screen
6.  $exit
7.  Logout of Gnome.
8.  Login back again graphically
9.  $su - root
10. $ screen -ls

Actual results:

There is a screen on:
	12057.pts-1.hostname	(Dead ???)
Remove dead screens with 'screen -wipe'.
1 Socket in /run/screen/S-root.

Expected results:

GNU screen should not be killed

Additional info:

Fresh installed Fedora 26.
Using XFS file system.
Comment 1 Thomas Stephen Lee 2017-08-16 02:23:23 EDT

I tried the following two things after filing the bug.

As screen is working properly in Fedora 24 and 25, I installed Fedora 25 version of screen.

$dnf remove screen
$dnf install http://ftp.jaist.ac.jp/pub/Linux/Fedora/updates/25/x86_64/s/screen-4.6.1-1.fc25.x86_64.rpm

Download, compile and install GNU screen from source.


GNU screen is getting killed after these 2 steps also.
Comment 2 Thomas Stephen Lee 2017-09-29 00:16:20 EDT
The above issue is a known issue in systemd.


"systemd-logind will now by default terminate user processes that are part of the user session scope unit (session-XX.scope) when the user logs out."

Hope there is some fix by either systemd or screen teams.

Comment 3 Thomas Stephen Lee 2018-01-05 00:37:04 EST
Issue is there in Fedora 27 also.
Comment 4 Thomas Stephen Lee 2018-05-22 01:03:39 EDT
Issue is there in Fedora 28 also.

Note You need to log in before you can comment on or make changes to this bug.