[PATCH:shmfd 2/2] Use /var/tmp instead of /run/shm on non-linux OS'es
Alan Coopersmith
alan.coopersmith at oracle.com
Fri Nov 8 22:16:07 PST 2013
On 11/ 7/13 11:53 PM, Mark Kettenis wrote:
>> From: Alan Coopersmith <alan.coopersmith at oracle.com>
>> Date: Thu, 7 Nov 2013 20:55:44 -0800
>>
>> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
>> ---
>> Makefile | 9 +++++----
>> shmfd.c | 4 ++++
>> 2 files changed, 9 insertions(+), 4 deletions(-)
>
> Ah, is this the example code I have been looking for the last couple
> of days?
Probably - I asked Keith for test code for the MIT-SHM fd passing on IRC,
and he pointed to his git repo at ssh://people.freedesktop.org/~keithp/shmfd
and updated it for the current API's.
(Aka http://cgit.freedesktop.org/~keithp/shmfd/ for your web browsing pleasure.)
> Anyway, wouldn't it be better to use /tmp instead of adding this
> (admittedly small) #ifdef spaghetti?
Possibly - I didn't know why Keith chose /run/shm in the first place.
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Engineering - http://blogs.oracle.com/alanc
More information about the xorg-devel
mailing list