mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-02 11:43:23 +00:00
fix: catch and ignore sigquit signal (closes #112)
This commit is contained in:
parent
ae449b89eb
commit
b8e0874ab0
@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
func handleSignals() {
|
func handleSignals() {
|
||||||
c := make(chan os.Signal)
|
c := make(chan os.Signal)
|
||||||
signal.Notify(c, os.Interrupt, syscall.SIGWINCH, syscall.SIGUSR1, syscall.SIGUSR2)
|
signal.Notify(c, os.Interrupt, syscall.SIGWINCH, syscall.SIGUSR1, syscall.SIGUSR2, syscall.SIGQUIT)
|
||||||
|
|
||||||
for s := range c {
|
for s := range c {
|
||||||
switch s {
|
switch s {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user