Skip to content

Commit 3587e2f

Browse files
committed
jobutils: Allow debugging in case of problems
Do not kill processes when debug mode is set (so that a debugger can attach)
1 parent 8d2118e commit 3587e2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Utilities/Tools/jobutils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ taskwrapper() {
212212

213213
sleep 2
214214

215-
taskwrapper_cleanup ${PID} SIGKILL
215+
[ ! "${JOBUTILS_DEBUGMODE}" ] && taskwrapper_cleanup ${PID} SIGKILL
216216

217217
RC_ACUM=$((RC_ACUM+1))
218218
[ ! "${JOBUTILS_KEEPJOBSCRIPT}" ] && rm ${SCRIPTNAME} 2> /dev/null

0 commit comments

Comments
 (0)