Commit 3648aa5
shm: exit when ftruncate() fails
numa_police_memory() accesses the mapping region, which size is shmlen.
If the shared file can not be extended to shmlen, then SIGBUS will be
triggered. Instead exit() is more graceful.
Signed-off-by: Pingfan Liu <piliu@redhat.com>1 parent 7a4fc04 commit 3648aa5
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
0 commit comments