Author: kib
Date: Fri Feb  8 07:36:08 2019
New Revision: 343896
URL: https://svnweb.freebsd.org/changeset/base/343896

Log:
  Correctly return exit status from the exited process.
  
  This is also OpenBSD rev. 1.117, as pointed out by
  Ryan Moeller <[email protected]>.
  
  Submitted by: Nash Kaminski <[email protected]>
  MFC after:    1 week

Modified:
  head/sbin/dhclient/dhclient.c

Modified: head/sbin/dhclient/dhclient.c
==============================================================================
--- head/sbin/dhclient/dhclient.c       Fri Feb  8 06:19:28 2019        
(r343895)
+++ head/sbin/dhclient/dhclient.c       Fri Feb  8 07:36:08 2019        
(r343896)
@@ -2348,7 +2348,7 @@ priv_script_go(void)
        if (ip)
                script_flush_env(ip->client);
 
-       return (wstatus & 0xff);
+       return WEXITSTATUS(wstatus);
 }
 
 void
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to