summaryrefslogtreecommitdiff
path: root/usr.bin/patch/patch.c
diff options
context:
space:
mode:
authornathanw <nathanw@NetBSD.org>2003-05-28 22:17:20 +0000
committernathanw <nathanw@NetBSD.org>2003-05-28 22:17:20 +0000
commit998110e1d0084b68b2d0ddfa75f892aa1f696e5b (patch)
tree14a44fdb1df8274f89069495643e76743f86361b /usr.bin/patch/patch.c
parent370fc7eb1096b1ef52526425483e26ec375a022f (diff)
Put the tsleep() call in sa_yield() inside a while loop that tests
whether there is anything to do - almost as if it were a predicate test outside of a condition wait. This prevents returning to userland when tsleep() has woken up spuriously, such as from a signal that was caught and then removed by a tracing process. Kills off some double-stops in GDB due to signals as well as a couple of pthread__idle assertions when detaching from a process. XXX stopping inside tsleep, via CURSIG(), is evil.
Diffstat (limited to 'usr.bin/patch/patch.c')
0 files changed, 0 insertions, 0 deletions