Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shm: exit when ftruncate() fails #82

Merged
merged 1 commit into from
Nov 12, 2019
Merged

Conversation

pfliu
Copy link

@pfliu pfliu commented Nov 6, 2019

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

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>
@andikleen andikleen merged commit 3648aa5 into numactl:master Nov 12, 2019
@andikleen
Copy link
Contributor

Thanks!

@pfliu pfliu deleted the ftruncate branch March 31, 2021 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants