]> git.baikalelectronics.ru Git - kernel.git/commit
Fix waitid si_code regression
authorRoland McGrath <roland@redhat.com>
Sat, 8 Mar 2008 19:41:22 +0000 (11:41 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 8 Mar 2008 19:54:00 +0000 (11:54 -0800)
commit0496227f21b0edcc3c4260cdbfe38b7c7128db78
treeda67b86b65e8dde1f52245e25b1889f87cc96b4e
parentfe881f1bf0abe648b2a520918788b32e799a3ac7
Fix waitid si_code regression

In commit 506505024861bfa4910cc2bc08956840643a4252 ("wait_task_stopped:
simplify and fix races with SIGCONT/SIGKILL/untrace"), the magic (short)
cast when storing si_code was lost in wait_task_stopped.  This leaks the
in-kernel CLD_* values that do not match what userland expects.

Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/exit.c