Skip to content

Commit

Permalink
Merge pull request #68 from lsst/tickets/DM-32435
Browse files Browse the repository at this point in the history
DM-32435 Implemented propagation of pipetask kill by signal
  • Loading branch information
SergeyPod committed Nov 4, 2021
2 parents 55af10e + c084561 commit f985824
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion python/lsst/ctrl/bps/wms/panda/edgenode/cmd_line_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,11 @@ def deliver_input_files(src_path, files, skip_copy):
cmd_line = cmd_line.replace("{" + key + "}", value)

print(cmd_line)
sys.exit(os.WEXITSTATUS(os.system(cmd_line)))

exit_status = os.system(cmd_line)
exit_code = 1
if os.WIFSIGNALED(exit_status):
exit_code = os.WTERMSIG(exit_status) + 128
elif os.WIFEXITED(exit_status):
exit_code = os.WEXITSTATUS(exit_status)
sys.exit(exit_code)

0 comments on commit f985824

Please sign in to comment.