Correctly return exit status from the exited process.
This is also OpenBSD rev. 1.117, as pointed out by Ryan Moeller <ryan@ixsystems.com>. Submitted by: Nash Kaminski <nashkaminski@gmail.com> MFC after: 1 week
This commit is contained in:
parent
938864b71b
commit
95f237c2f6
@ -2348,7 +2348,7 @@ priv_script_go(void)
|
||||
if (ip)
|
||||
script_flush_env(ip->client);
|
||||
|
||||
return (wstatus & 0xff);
|
||||
return WEXITSTATUS(wstatus);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user