windows 下的信号没有 SIGUSR1、SIGUSR2 等
发布时间:2021-10-25 14:08:00
热度: 2288 ℃
<p>var signals = [...]string{</p><p> // 这里省略N行。。。。</p><p> </p><p> /** 兼容windows start */</p><p> 16: "SIGUSR1",</p><p> 17: "SIGUSR2",</p><p> 18: "SIGTSTP",</p><p> /** 兼容windows end */</p><p>}</p><p> </p><p>/** 兼容windows start */</p><p>func Kill(...interface{}) {</p><p> return;</p><p>}</p><p>const (</p><p> SIGUSR1 = Signal(0x10)</p><p> SIGUSR2 = Signal(0x11)</p><p> SIGTSTP = Signal(0x12)</p><p>)</p><p>/** 兼容windows end */</p>