试着解决java不响应终止信号的问题
This commit is contained in:
parent
a88680a386
commit
d1b1ca8dc0
@ -34,7 +34,7 @@ func Running() {
|
|||||||
DaemonChanRX <- struct{}{}
|
DaemonChanRX <- struct{}{}
|
||||||
}
|
}
|
||||||
func Stopping() {
|
func Stopping() {
|
||||||
proc.Process.Signal(syscall.SIGINT)
|
proc.Process.Signal(syscall.SIGTERM)
|
||||||
proc.Wait()
|
proc.Wait()
|
||||||
go Stopped()
|
go Stopped()
|
||||||
DaemonChanRX <- struct{}{}
|
DaemonChanRX <- struct{}{}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user