mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
exit stdin loop on error, force a sigkill after 10s
This commit is contained in:
@@ -434,8 +434,11 @@ func stdinReadWatch() {
|
||||
sendTelemetryWrapper()
|
||||
time.Sleep(1 * time.Second)
|
||||
syscall.Kill(syscall.Getpid(), syscall.SIGINT)
|
||||
break
|
||||
}
|
||||
}
|
||||
time.Sleep(10 * time.Second)
|
||||
syscall.Kill(syscall.Getpid(), syscall.SIGKILL)
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user