summaryrefslogtreecommitdiffstats
path: root/lib/libssl/tls13_record_layer.c
diff options
context:
space:
mode:
authorcheloha <cheloha@openbsd.org>2020-10-15 04:28:42 +0000
committercheloha <cheloha@openbsd.org>2020-10-15 04:28:42 +0000
commitb09414a6f3fa5f696f129939d149d8be67301490 (patch)
tree629df4556df78bfd241c50ebfc55176fdd192aa2 /lib/libssl/tls13_record_layer.c
parentmake three mib[] arrays const, as was done in libc (diff)
downloadwireguard-openbsd-b09414a6f3fa5f696f129939d149d8be67301490.tar.xz
wireguard-openbsd-b09414a6f3fa5f696f129939d149d8be67301490.zip
_exit(2), execve(2): cancel per-process interval timers safely
During _exit(2) and sometimes during execve(2) we need to cancel any active per-process interval timers. We don't currently do this in an MP-safe way. Both syscalls ignore the locking assumptions documented in proc.h. The easiest way to make them MP-safe is to use setitimer(), just like the getitimer(2) and setitimer(2) syscalls do. To make things a bit cleaner I have added a helper function, cancelitimer(), so the callers don't need to fuss with an itimerval struct. While we're here we can remove the splclock/splx dance from execve(2). It is no longer necessary. ok deraadt@
Diffstat (limited to 'lib/libssl/tls13_record_layer.c')
0 files changed, 0 insertions, 0 deletions