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

Workaround for shared memory leakage. #402

Merged
merged 1 commit into from
Jan 19, 2017
Merged

Conversation

ken3
Copy link
Contributor

@ken3 ken3 commented Jan 19, 2017

Description of problem:
vncviewer creates a shared memory segment for MIT-SHM. It is not removed when vncviewer is killed
by signal, because PlatformPixelBuffer destructor is never called after CleanupSignalHandler().
Workaround:
Mark the shared memory as "destroyed" as soon as possible.
It will be invisible soon after the vncviewer is killed.

See https://bugzilla.redhat.com/show_bug.cgi?id=1358090

@CendioOssman
Copy link
Member

Great. This doesn't really sound like a workaround though, but rather a proper fix. Could you get rid of the old code and goto target instead of just commenting it out?

@ken3
Copy link
Contributor Author

ken3 commented Jan 19, 2017

Fixed. How do you like it?

@CendioOssman
Copy link
Member

Looks good. Could you squash them in to a single commit?

@ken3
Copy link
Contributor Author

ken3 commented Jan 19, 2017

Done.

@CendioOssman CendioOssman merged commit 1d2556f into TigerVNC:master Jan 19, 2017
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