https://bugzilla.gnome.org/show_bug.cgi?id=760897

--- Comment #1 from Ray Strode [halfline] <[email protected]> ---
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.
_______________________________________________
wayland-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to