Skip to content

Commit

Permalink
fix incorrect exit code returned from process exec in utils when time…
Browse files Browse the repository at this point in the history
…out specified
  • Loading branch information
ssadedin committed Dec 11, 2023
1 parent 7c1a438 commit 4ee3dea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/groovy/bpipe/Utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,9 @@ class Utils {
}
Thread.sleep(2000)
}

if(!p.isAlive())
result.exitValue = p.exitValue()
}
else {
result.exitValue = p.waitFor()
Expand Down

0 comments on commit 4ee3dea

Please sign in to comment.