amend sys.HandleSigKill
This commit is contained in:
parent
2d804b3e59
commit
8086f2df95
|
@ -122,10 +122,8 @@ func HandleSigKill(done chan os.Signal) {
|
|||
signal.Notify(done, syscall.SIGINT, syscall.SIGTERM)
|
||||
go func() {
|
||||
<-done // Will block here until user hits ctrl+c
|
||||
cmd := exec.Command("tput", "cnorm")
|
||||
RunCmd(cmd)
|
||||
cmd = exec.Command("tput", "-x", "clear")
|
||||
RunCmd(cmd)
|
||||
RunCmd(exec.Command("tput", "cnorm"))
|
||||
RunCmd(exec.Command("tput", "-x", "clear"))
|
||||
os.Exit(0)
|
||||
}()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user