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

Vishesh Handa me at vhanda.in
Thu Jan 22 12:27:15 UTC 2015


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

Ship it!


Seems like a sensible thing. 
Though perhaps we should think about improving QTemporaryFile to do the same internally.

- Vishesh Handa


On Jan. 20, 2015, 9:35 a.m., Martin Gräßlin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122167/
> -----------------------------------------------------------
> 
> (Updated Jan. 20, 2015, 9:35 a.m.)
> 
> 
> 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/20150122/8bbda49b/attachment.html>


More information about the Plasma-devel mailing list