clean up, bugfixes, and general improvement for shm_open/shm_unlink
authorRich Felker <dalias@aerifal.cx>
Sun, 30 Sep 2012 21:53:54 +0000 (17:53 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 30 Sep 2012 21:53:54 +0000 (17:53 -0400)
commit6e2372a86c7e862ed931910f8a5f4b908639d689
tree57892b1e0d718fbb9ab86767915bca095cc5e307
parent2e3648b85db1c71bfc684233f7a521b0d4bbeb20
clean up, bugfixes, and general improvement for shm_open/shm_unlink

1. don't make non-cloexec file descriptors
2. cancellation safety (cleanup handlers were missing, now unneeded)
3. share name validation/mapping code between open/unlink functions
4. avoid wasteful/slow syscalls
src/mman/shm_open.c
src/mman/shm_unlink.c [deleted file]