>>>>> "GL" == Greg London <[EMAIL PROTECTED]> writes:

  GL> system('cvs update -rtagname') 
  GL> breaks this when the tagname doesn't exist.

  GL> It dies with a signal for some reason, rather
  GL> than just giving a simple non-zero exit status.
  GL> If the command fails like that, I just want
  GL> to continue running the perl script.

  GL> perdoc -q control-c doesn't say any particular
  GL> bit is used to flag control-c, but the cvs command
  GL> set bit 1, while a control-c during a cp -r 
  GL> command set bit 2. 

what bits? the signal part is a number (0-31) in a single byte and the
exit code (another single byte) is in the other byte.

  GL> If I just test bit 2 rather than 7..0, 
  GL> would that still trap all the control-c's 
  GL> but let all the commands that failed on their own
  GL> to keep running?

  >> if ($? & 0xff) {
  >> die "Process killed by signal ".($? & 0xff);
  >> } elsif ($? >> 8) {
  >> die "Process exited with status ".($? >> 8);
  >> } else {
  >> # Worked fine
  >> }

are you using that code (or basing on it)? extract out both bytes and
print them as integers and see what you get.

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to