kernel - Change default kern.ipc.shm_allow_removed=1
commit1e1a926738b4e738a38d810ce11252031b1062ab
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 30 May 2017 19:13:41 +0000 (30 12:13 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 30 May 2017 19:13:41 +0000 (30 12:13 -0700)
tree462a28fea4cb7441bd4e46ae630c5d8018cb2525
parent7e0bd5c5b77283c42481738a4c95ca16e56cc0be
kernel - Change default kern.ipc.shm_allow_removed=1

* Change kern.ipc.shm_allow_removed to default to enabled.  This feature
  allows a shared memory segment to be located by its shmid after being
  deleted, as long as some prior reference to the segment is still active.

* Primarily used by chrome these days, this trick is convenient in that
  it allows applications to attach shared memory segments in a manner that
  do ensures they are deleted if the application is killed or seg-faults
  unexpectedly.
sys/kern/sysv_shm.c