Repository navigation
Commit e4b6438
Remove the o2-sim shared-memory segment when its last user detaches
This stops a killed o2-sim from leaking its SysV shared-memory segment.
- The segment (1 GB per worker) was only removed in the driver's normal cleanup.
- It is now marked IPC_RMID right after creation; Linux still lets the workers and the merger attach by id.
- The kernel frees it once the last process detaches, also after a crash.
- The segment is now created with mode 0600 instead of 0666.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent f085736 commit e4b6438
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| |||
0 commit comments