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:
Konstantin Belousov 2019-02-08 07:36:08 +00:00
parent 938864b71b
commit 95f237c2f6

View File

@ -2348,7 +2348,7 @@ priv_script_go(void)
if (ip)
script_flush_env(ip->client);
return (wstatus & 0xff);
return WEXITSTATUS(wstatus);
}
void