posix: don't mask-out high bytes of exit status, it's shell's job
With userspace default signal handlers we need to preserve information
about what signal killed the process.
@@ -2239,7 +2239,7 @@ void posix_died(pid_t pid, int exit)
if ((pinfo = pinfo_find(pid)) == NULL)
return;
- posix_exit(pinfo, exit & 0xff);
+ posix_exit(pinfo, exit);
if ((ppinfo = pinfo_find(pinfo->parent)) == NULL) {
// posix_destroy(pinfo);
