diff options
author | jilles <jilles@FreeBSD.org> | 2013-11-17 22:31:23 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-11-17 22:31:23 +0000 |
commit | 10685f105cb44d311bef08e15894cdae3ee9bbd7 (patch) | |
tree | 45371901b9ef7392a1ee46ec90518967f3054c20 /lib/libc_nonshared | |
parent | d38e51078dc804ba012adf2c9e5e106b43568b35 (diff) | |
download | FreeBSD-src-10685f105cb44d311bef08e15894cdae3ee9bbd7.zip FreeBSD-src-10685f105cb44d311bef08e15894cdae3ee9bbd7.tar.gz |
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
Diffstat (limited to 'lib/libc_nonshared')
0 files changed, 0 insertions, 0 deletions