-
-
Notifications
You must be signed in to change notification settings - Fork 51
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).
- Loading branch information
Showing
1 changed file
with
66 additions
and
28 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