projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
744e90e
)
Fix wrong number of parameters
author
Peter Amstutz <peter.amstutz@curoverse.com>
Tue, 8 Jul 2014 18:08:28 +0000
(14:08 -0400)
committer
Peter Amstutz <peter.amstutz@curoverse.com>
Tue, 8 Jul 2014 18:08:28 +0000
(14:08 -0400)
crunch_scripts/run-command
patch
|
blob
|
history
diff --git
a/crunch_scripts/run-command
b/crunch_scripts/run-command
index 71a9f963affdfed0efa4241accad45a78725d1c9..7a65f5377316248d35ecfbcdfd70fbd9281a3986 100755
(executable)
--- a/
crunch_scripts/run-command
+++ b/
crunch_scripts/run-command
@@
-56,7
+56,7
@@
class SigHandler(object):
def __init__(self):
self.sig = None
def __init__(self):
self.sig = None
- def send_signal(self, sp, signum
, sig
):
+ def send_signal(self, sp, signum):
sp.send_signal(signum)
self.sig = signum
sp.send_signal(signum)
self.sig = signum
@@
-84,10
+84,8
@@
try:
# wait for process to complete.
rcode = sp.wait()
# wait for process to complete.
rcode = sp.wait()
- print("sig is %s" % sig.sig)
-
- if len(sig) > 0:
- print("run-command: terminating on signal %s" % sig[0])
+ if sig.sig != None:
+ print("run-command: terminating on signal %s" % sig.sig)
sys.exit(rcode)
else:
print("run-command: completed with exit code %i (%s)" % (rcode, "success" if rcode == 0 else "failed"))
sys.exit(rcode)
else:
print("run-command: completed with exit code %i (%s)" % (rcode, "success" if rcode == 0 else "failed"))