Shawn Nematbakhsh has uploaded a new change for review.
Change subject: x11vnc: Fix shm close on early shutdown.
......................................................................
x11vnc: Fix shm close on early shutdown.
Global structures {scanline,fullscreen,scanrect}_shm are initialized to
zero, including the .shmid field. This creates problems when shutdown /
clean_shm is called before these structures are properly initialized in
initialize_polling_images. shm_delete will be called on the structure,
and since the shmid isn't -1, shmctl(id, IPC_RMID...) will be called for
id=0. id=0 is in fact a valid shmid, and it might belong to some other
shared memory for some other processes, creating many potential problems.
Fix is to initialize shmid to -1 to indicate that it is in fact
uninitialized.
BUG=chrome-os-partner:16097
TEST=build factory image, confirm that "aplay" works without error.
Change-Id: I18f3ac50c52818e7c201fc85e8f4df24554237cc
---
A x11-misc/x11vnc/files/x11vnc-0.9.13-shm-cleanup.patch
M x11-misc/x11vnc/x11vnc-0.9.9.ebuild
2 files changed, 19 insertions(+), 1 deletion(-)
git pull ssh://
gerrit.chromium.org:29418/chromiumos/overlays/portage-stable refs/changes/71/37971/1
--
To view, visit
https://gerrit.chromium.org/gerrit/37971
To unsubscribe, visit
https://gerrit.chromium.org/gerrit/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I18f3ac50c52818e7c201fc85e8f4df24554237cc
Gerrit-PatchSet: 1
Gerrit-Project: chromiumos/overlays/portage-stable
Gerrit-Branch: factory-2985.B
Gerrit-Owner: Shawn Nematbakhsh <
sha...@google.com>