Review Request 122167: Unlink the temporary file for ShmPool from file system

Martin Gräßlin mgraesslin at kde.org
Mon Jan 26 10:12:18 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122167/
-----------------------------------------------------------

(Updated Jan. 26, 2015, 10:12 a.m.)


Status
------

This change has been marked as submitted.


Review request for Plasma.


Repository: kwayland


Description
-------

By using unlink() we can ensure that the file will be deleted after
the last file descriptor referring to it is closed.

QTemporaryFile didn't clean up in case of e.g. crashes.


Diffs
-----

  src/client/shm_pool.cpp c5d4a9f92ed2d4904ee999285b22b8218d8ff7f0 

Diff: https://git.reviewboard.kde.org/r/122167/diff/


Testing
-------

run kwin_wayland with KWIN_COMPOSE=Q to enforce usage of ShmPool: no file listed for kwin in /tmp.


Thanks,

Martin Gräßlin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20150126/6c78ebdc/attachment.html>


More information about the Plasma-devel mailing list