Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



How is that different from two unrelated programs using shm_open with conflicting file names? Such programs need to ensure unique names anyway.


Expecting a program to do that is one thing.

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: