Bug 533093: ux_wait_timeout needs the same fix of rev. 1.3 (remove % 256
authorwtc%google.com
Tue, 08 Dec 2009 00:52:06 +0000
changeset 4185 3c71e3067745a50aee760c9c24c310e8d966438c
parent 4184 744e1375ce05ff3f222f25e9294ea68950ff72de
child 4186 427c5ba8b27b8f4bad72863f1f7ea99ae129a239
child 4191 60feb86ade8e7b06fcee2d17ab8096ad02ef6d5a
push idunknown
push userunknown
push dateunknown
bugs533093
Bug 533093: ux_wait_timeout needs the same fix of rev. 1.3 (remove % 256 from $?) for the "if ($ltimeout == 0)" case. r=christophe.
pr/tests/runtests.pl
--- a/pr/tests/runtests.pl
+++ b/pr/tests/runtests.pl
@@ -165,17 +165,17 @@ sub ux_wait_timeout {
 # parameters:
 $lpid = shift;     # child process id
 $ltimeout = shift; # timeout
 
     if ($ltimeout == 0) {
         # No timeout: use blocking wait
         $ret = waitpid($lpid,0);
         # Exit and don't kill
-        $lstatus = $? % 256;
+        $lstatus = $?;
         $ltimeout = -1;
     } else {
         while ($ltimeout > 0) {
             # Check status of child using non blocking wait
             $ret = waitpid($lpid, WNOHANG);
             if ($ret == 0) {
                 # Child still running
     #           print "Time left=$ltimeout\n";