diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-04-28 20:54:19 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-04-28 20:54:19 +0000 |
commit | b3862cda59d99dfd88ce3dc62ec46f1ea02d6c3c (patch) | |
tree | 11634d848a17940fd7db5b8924ee2a788b97739f /include/stdbool.h | |
parent | 201f221246b34b2915fb972bf0141ff29a12e54f (diff) |
Protect the per-process itimerval structs with a mutex. We update these
from hardclock() which runs without grabbing the kernel lock. This means
that two threads could concurrently update the struct which could lead to
corruption of the value which in turn could stop the timer. It could also
result in getitimer(2) returning a non-normalized value.
With help from guenther@.
ok deraadt@, guenther@
Diffstat (limited to 'include/stdbool.h')
0 files changed, 0 insertions, 0 deletions