[opendemo-cvs] CVS: opendemo/tools wpu,1.16,1.17
Status: Beta
Brought to you by:
girlich
From: Uwe G. <gi...@us...> - 2004-05-30 18:45:49
|
Update of /cvsroot/opendemo/opendemo/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16924 Modified Files: wpu Log Message: copy current version from LMPC Index: wpu =================================================================== RCS file: /cvsroot/opendemo/opendemo/tools/wpu,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** wpu 29 May 2004 19:13:00 -0000 1.16 --- wpu 30 May 2004 18:45:40 -0000 1.17 *************** *** 916,919 **** --- 916,929 ---- print join (" ", @args), "\n"; system @args; + if ($? == -1) { + print "failed to execute: $!\n"; + } + elsif ($? & 127) { + printf "child died with signal %d, %s coredump\n", + ($? & 127), ($? & 128) ? 'with' : 'without'; + } + else { + exit ($? >> 8); + } } |