mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +08:00
fix: fix the Signal.Notify
This commit is contained in:
parent
b425702c01
commit
4f756c8b29
@ -64,7 +64,7 @@ func StartTask() error {
|
|||||||
crontab.Start()
|
crontab.Start()
|
||||||
|
|
||||||
sigs := make(chan os.Signal, 1)
|
sigs := make(chan os.Signal, 1)
|
||||||
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT)
|
signal.Notify(sigs, syscall.SIGUSR1)
|
||||||
<-sigs
|
<-sigs
|
||||||
|
|
||||||
// stop crontab, Wait for the running task to exit.
|
// stop crontab, Wait for the running task to exit.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user