Jilles Tjoelker b20a9aa92a Fix siginfo_t.si_status for wait6/waitid/SIGCHLD.
Per POSIX, si_status should contain the value passed to exit() for
si_code==CLD_EXITED and the signal number for other si_code. This was
incorrect for CLD_EXITED and CLD_DUMPED.

This is still not fully POSIX-compliant (Austin group issue #594 says that
the full value passed to exit() shall be returned via si_status, not just
the low 8 bits) but is sufficient for a si_status-related test in libnih
(upstart, Debian/kFreeBSD).

PR:		kern/184002
Reported by:	Dmitrijs Ledkovs
Tested by:	Dmitrijs Ledkovs
2013-11-17 22:31:23 +00:00
..
2013-09-19 18:56:00 +00:00
2013-02-02 14:19:50 +00:00
2012-08-22 20:01:57 +00:00
2012-11-14 10:33:12 +00:00
2012-09-04 23:16:55 +00:00
2013-09-19 18:56:00 +00:00
2012-10-25 09:05:21 +00:00
2013-11-14 09:45:33 +00:00
2013-11-08 20:11:15 +00:00
2013-06-29 05:05:57 +00:00