p4raw-id: //depot/win32/perl@388
=item *
-C<$?> ends up with the exitstatus of the subprocess (this is different
-from Unix, where the exitstatus is actually given by "$? >> 8").
-Failure to spawn() the subprocess is indicated by setting $? to
-"255<<8". This is subject to change.
+C<$?> is set in a way compatible with Unix, so the exitstatus of the
+subprocess is actually obtained by "$? >> 8". Failure to spawn() the
+subprocess is indicated by setting $? to "255 << 8".
=item *
if (status < 0) {
if (dowarn)
warn("Can't spawn \"%s\": %s", cmd, strerror(errno));
- status = 255 << 8;
+ status = 255;
}
- return (status);
+ return (statusvalue = status*256);
}
int
(exectype == EXECF_EXEC ? "exec" : "spawn"),
needToTry ? shell : argv[0],
strerror(errno));
- status = 255 << 8;
+ status = 255;
}
- return (status);
+ return (statusvalue = status*256);
}
int