Bug 1663050

Summary: quitting an X session run via 'startx' causes the tty it was run on to exit and restart (systemd 240)
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: systemdAssignee: systemd-maint
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: lnykryn, mrmazda, msekleta, ssahani, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-240-3.gitf02b547.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 14:02:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Williamson 2019-01-02 21:42:37 UTC
This bug appeared between systemd-239-10.git3bf819c.fc30 and systemd-240-2.fc30 (I'm guessing it appeared in 240-1.fc30, but haven't confirmed yet). It's easily reproducible.

1. Do a minimal Rawhide install
2. Log in as root
3. dnf -y groupinstall base-x
4. dnf -y install libglvnd-egl firefox
5. sed -i -e 's,enable_xauth=1,enable_xauth=0,g' /usr/bin/startx
6. startx /usr/bin/firefox
7. After firefox launches, ctrl-q

After firefox exits, the tty quits and restarts, so you are back at the login prompt. With systemd-239-10.git3bf819c.fc30 and earlier, this did not happen - you were just sent back to the root console from which you ran startx.

This is breaking several openQA tests which expect the previous behaviour - they assume they'll be back at a root console after exiting Firefox, and continue to run commands, which obviously fail as they're actually at a login prompt. I'll have to work around this in the tests.