TopList icon indicating copy to clipboard operation
TopList copied to clipboard

请问代码不支持在window运行吗?

Open Blusez opened this issue 6 years ago • 1 comments

在window上会报 syscall.SIGUSR1 无法编译。那么在window可以运行代码吗?

Blusez avatar Aug 16 '19 06:08 Blusez

你好,是可以在Windows上面编译运行的,只是需要去掉这一段代码在main方法里面的调用, func SyncMysqlCfg() { s := make(chan os.Signal, 1) signal.Notify(s, syscall.SIGUSR1) go func() { for { <-s Config.ReloadConfig() log.Println("Reloaded config") } }() } 这段代码是通过Unix系统的SIGUSR1信号发送给进程平滑修改配置的。

timeromantic avatar Aug 16 '19 06:08 timeromantic