mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-29 13:21:10 +00:00
use exit status 130 when canceling a build
This commit is contained in:
parent
50d3ea8e00
commit
bf1b9d2d8a
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ func main() {
|
||||||
<-killc
|
<-killc
|
||||||
log.Println("Received reques to kill this build")
|
log.Println("Received reques to kill this build")
|
||||||
client.Destroy() // possibe race here. implement lock on the other end
|
client.Destroy() // possibe race here. implement lock on the other end
|
||||||
os.Exit(1)
|
os.Exit(130) // cancel is treated like ctrl+c
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// performs some initial parsing and pre-processing steps
|
// performs some initial parsing and pre-processing steps
|
||||||
|
|
Loading…
Reference in a new issue