Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lock X updates for all systems and lock around X cleanup at exit #391

Merged
merged 2 commits into from
Aug 26, 2021

Conversation

nbriggs
Copy link
Collaborator

@nbriggs nbriggs commented Aug 26, 2021

All systems which could generate I/O interrupts on the X file descriptor need
to have locking enabled, or there is a high probability that the X library
will deadlock. This requirement may be removed in the future with restructuring
of the way that the interrupt driven I/O is handled.

Ensure that the appropriate XLOCK/XUNLOCK is done around the X window
closing code.

All systems which could generate I/O interrupts on the X file descriptor need
to have locking enabled, or there is a high probability that the X library
will deadlock. This requirement may be removed in the future with restructuring
of the way that the interrupt driven I/O is handled.

Ensure that the appropriate XLOCK/XUNLOCK is done around the X window
closing code.
@nbriggs nbriggs requested a review from masinter August 26, 2021 18:30
Copy link
Member

@masinter masinter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not clear what this changes when running.... anything?

@nbriggs
Copy link
Collaborator Author

nbriggs commented Aug 26, 2021

It prevents the deadlock that I reported in your medley PR 430. It will slow everything down infinitesimally.

@nbriggs nbriggs merged commit e957e33 into master Aug 26, 2021
@nbriggs nbriggs deleted the lock-x-updates-on-all-systems branch September 10, 2021 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants