瀏覽代碼

added os.kill

0xdcarns 3 年之前
父節點
當前提交
ad155087b3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netclient/functions/daemon.go

+ 1 - 1
netclient/functions/daemon.go

@@ -64,7 +64,7 @@ func Daemon() error {
 	wg.Add(1)
 	go Checkin(ctx, &wg, commsNetworks)
 	quit := make(chan os.Signal, 1)
-	signal.Notify(quit, syscall.SIGTERM, os.Interrupt)
+	signal.Notify(quit, syscall.SIGTERM, os.Interrupt, os.Kill)
 	<-quit
 	for currCommsNet := range commsNetworks {
 		if cancel, ok := networkcontext.Load(currCommsNet); ok {