forked from QubesOS/qubes-gui-daemon
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shmoverride: handle Xorg crash leaving shm.id file
Instead of opening with O_CREAT|O_EXCL, use flock() to see if the file is held by an alive Xorg process. If we fail for some reason, always clean up and continue instead of calling exit(). See 0ac0c7f for more context. Solves part of QubesOS/qubes-issues#5273 (qubes-guid failing to start after Xorg crash). (cherry picked from commit 24e947b)
- Loading branch information
Showing
1 changed file
with
65 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters