summaryrefslogtreecommitdiff
path: root/lib/libagentx
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2021-08-11 15:13:47 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2021-08-11 15:13:47 +0000
commit6dcd911f8f560797d1b0ab31ae6b534bbe480bba (patch)
treed8644a0782c613dddd810c1fe56353efd2f59b0b /lib/libagentx
parent2d49304fff5cb7247f09a85b1589b54210155e48 (diff)
Only enter the sig_no switch if we actually return from read(2) with
errno == EINTR. There was a race here where read(2) can return with a different errno, but the signal handler enters between the read return and the switch, which could result in handling a signal, while we should be handling the error. This fix assumes that signal handlers don't clobber our errno, but doing that would open a whole other can of worms. OK schwarze@, millert@
Diffstat (limited to 'lib/libagentx')
0 files changed, 0 insertions, 0 deletions