mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 21:57:59 +02:00
lib/atexit: add SIGTERM to signals which run the exit handlers on unix
This commit is contained in:
10
lib/atexit/atexit_unix.go
Normal file
10
lib/atexit/atexit_unix.go
Normal file
@ -0,0 +1,10 @@
|
||||
//+build !windows,!plan9
|
||||
|
||||
package atexit
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
var exitSignals = []os.Signal{syscall.SIGINT, syscall.SIGTERM} // Not syscall.SIGQUIT as we want the default behaviour
|
Reference in New Issue
Block a user