Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
ERROR() {
trap 0
ecflow_client --abort $$
exit 1
}
trap ERROR 0 $SIGNAL_LIST
# ...
function call {
 trap '{ echo "Error in function"; exit 1; }' 0 $SIGNAL_LIST
 set -ex
 # ...
}
# ...calltrap
call
trap 0; ecflow_client --complete ; exit 0

...