←back to thread

66 points hiAndrewQuinn | 1 comments | | HN request time: 0.254s | source
Show context
pizlonator ◴[] No.44392636[source]
The reason why this might be a bad idea is that /dev/shm is used for shm_open(3).

So in theory some program might pass a name to shm_open that collides with whatever you put in /dev/shm.

Unlikely but possible

replies(1): >>44392672 #
layer8 ◴[] No.44392672[source]
How is that different from two unrelated programs using shm_open with conflicting file names? Such programs need to ensure unique names anyway.
replies(1): >>44409640 #
1. pizlonator ◴[] No.44409640[source]
Expecting a program to do that is one thing.

Expecting yourself to do that when you use /dev/sum is another