[Wayland-bugs] [Bug 760897] A few clean ups to the shm handling code
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jan 20 09:57:03 PST 2016
https://bugzilla.gnome.org/show_bug.cgi?id=760897
--- Comment #1 from Ray Strode [halfline] <rstrode at redhat.com> ---
Created attachment 319452
--> https://bugzilla.gnome.org/attachment.cgi?id=319452&action=edit
wayland: unlink shm file earlier in create function
create_shm_pool unlinks the temporary file a little,
too late. It should be unlinked before ftruncate()
is called for two reasons:
1) if ftruncate fails, the file is currently not
getting cleaned up at all
2) in theory, if the file is public some other process
could muck with it
This commit just moves the unlink call a little higher
up.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20160120/ca162f25/attachment.html>
More information about the wayland-bugs
mailing list