Jilles Tjoelker b823fb59f1 sh: Fix race condition with signals and wait or set -T.
The change in r238888 was incomplete. It was still possible for a trapped
signal to arrive before the shell went to sleep (sigsuspend()) because a
check was missing or because the signal arrived before in_waitcmd was set.

On SMP, this bug sometimes caused the builtins/wait4.0 test to take 1 second
to execute; it then might or might not fail. On UP, the test almost always
failed.
2013-09-02 21:57:46 +00:00
..
2011-05-27 20:53:07 +00:00
2013-08-16 20:24:41 +00:00
2013-07-25 15:08:41 +00:00
2013-04-01 17:18:22 +00:00
2013-07-25 19:48:15 +00:00
2013-07-25 15:08:41 +00:00
2013-08-16 20:24:41 +00:00
2012-01-01 22:17:12 +00:00
2013-07-25 15:08:41 +00:00
2013-04-07 16:28:36 +00:00
2011-06-18 23:43:28 +00:00
2013-08-30 20:50:28 +00:00
2013-07-25 19:48:15 +00:00
2009-12-24 18:41:14 +00:00
2013-07-25 15:08:41 +00:00
2012-02-04 23:12:14 +00:00