Scott James Remnant
e6ceb32aa2
wait_task_stopped(): pass correct exit_code to wait_noreap_copyout()
...
In wait_task_stopped() exit_code already contains the right value for the
si_status member of siginfo, and this is simply set in the non WNOWAIT
case.
If you call waitid() with a stopped or traced process, you'll get the signal
in siginfo.si_status as expected -- however if you call waitid(WNOWAIT) at the
same time, you'll get the signal << 8 | 0x7f
Pass it unchanged to wait_noreap_copyout(); we would only need to shift it
and add 0x7f if we were returning it in the user status field and that
isn't used for any function that permits WNOWAIT.
Signed-off-by: Scott James Remnant <scott@ubuntu.com>
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-11-29 09:24:55 -08:00
..
2007-11-14 18:45:43 -08:00
2007-11-14 18:45:43 -08:00
2007-11-28 15:52:56 +01:00
2007-11-26 21:21:49 +01:00
2007-10-21 02:37:45 -04:00
2007-10-21 02:37:45 -04:00
2007-10-21 02:37:45 -04:00
2007-10-21 02:37:45 -04:00
2007-10-22 19:40:02 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:36 -07:00
2007-11-14 18:45:37 -08:00
2007-10-18 15:12:41 -07:00
2007-05-09 12:30:49 -07:00
2007-10-19 11:53:44 -07:00
2007-10-19 11:53:44 -07:00
2007-10-18 14:37:28 -07:00
2007-10-18 14:37:24 -07:00
2007-10-18 14:37:26 -07:00
2007-11-29 09:24:55 -08:00
2007-11-09 22:39:39 +01:00
2007-11-09 16:13:08 -08:00
2007-11-05 21:53:46 +11:00
2007-10-29 09:39:38 +01:00
2007-10-18 14:37:26 -07:00
2007-11-29 09:24:54 -08:00
2006-12-07 08:39:36 -08:00
2007-10-19 11:53:54 -07:00
2007-10-17 08:42:55 -07:00
2007-10-19 11:53:49 -07:00
2007-07-16 09:05:50 -07:00
2007-09-11 17:21:20 -07:00
2007-10-16 09:43:10 -07:00
2007-10-17 08:42:54 -07:00
2007-07-31 15:39:42 -07:00
2006-12-04 02:00:22 -05:00
2006-12-07 08:39:43 -08:00
2007-10-11 22:11:11 +02:00
2007-10-28 20:47:01 +01:00
2007-11-14 18:45:40 -08:00
2007-11-14 18:45:40 -08:00
2007-11-19 11:20:43 +11:00
2007-02-14 08:09:54 -08:00
2007-10-11 22:11:12 +02:00
2007-10-19 11:53:34 -07:00
2007-10-19 11:53:37 -07:00
2007-10-19 11:53:39 -07:00
2007-10-20 00:30:06 +02:00
2007-11-14 18:45:42 -08:00
2007-11-14 18:45:43 -08:00
2007-10-19 11:53:40 -07:00
2007-10-19 11:53:40 -07:00
2007-10-18 14:37:19 -07:00
2007-10-24 18:23:50 +02:00
2007-10-19 11:53:40 -07:00
2007-10-17 08:42:48 -07:00
2007-10-17 08:42:53 -07:00
2007-10-18 14:37:24 -07:00
2007-11-14 18:45:39 -08:00
2007-07-16 09:05:49 -07:00
2007-10-19 11:53:43 -07:00
2007-07-17 10:23:02 -07:00
2007-10-19 11:53:43 -07:00
2007-07-19 10:04:49 -07:00
2007-11-28 15:52:56 +01:00
2007-11-26 21:21:49 +01:00
2007-10-24 18:23:51 +02:00
2007-10-24 18:23:51 +02:00
2007-11-28 15:52:56 +01:00
2007-11-28 15:52:56 +01:00
2007-07-16 09:05:50 -07:00
2007-11-12 16:05:23 -08:00
2007-10-10 16:49:18 -07:00
2007-10-19 11:53:43 -07:00
2007-07-19 10:04:49 -07:00
2007-07-16 09:05:41 -07:00
2007-10-30 21:29:56 -07:00
2007-11-17 16:27:00 +01:00
2007-11-26 20:09:07 -08:00
2007-11-14 18:45:37 -08:00
2007-11-14 18:45:44 -08:00
2007-10-18 14:37:24 -07:00
2007-11-09 22:39:38 +01:00
2007-10-18 14:37:28 -07:00
2007-05-08 11:15:07 -07:00
2007-09-19 11:24:18 -07:00
2007-11-26 21:21:49 +01:00
2007-11-29 09:24:53 -08:00
2007-09-19 11:24:17 -07:00
2007-05-09 08:57:56 +02:00
2007-10-19 11:53:43 -07:00