all: sync with master; upd chlog

This commit is contained in:
Ainar Garipov
2023-09-07 17:13:48 +03:00
parent 3be7676970
commit 7b93f5d7cf
306 changed files with 19770 additions and 4916 deletions

View File

@@ -113,7 +113,7 @@ func (w *osWatcher) handleEvents() {
}
// Skip the following events assuming that sometimes the same event
// occurrs several times.
// occurs several times.
for ok := true; ok; {
select {
case _, ok = <-ch:

View File

@@ -182,3 +182,8 @@ func IsReconfigureSignal(sig os.Signal) (ok bool) {
func IsShutdownSignal(sig os.Signal) (ok bool) {
return isShutdownSignal(sig)
}
// SendShutdownSignal sends the shutdown signal to the channel.
func SendShutdownSignal(c chan<- os.Signal) {
sendShutdownSignal(c)
}

View File

@@ -37,3 +37,7 @@ func isShutdownSignal(sig os.Signal) (ok bool) {
return false
}
}
func sendShutdownSignal(_ chan<- os.Signal) {
// On Unix we are already notified by the system.
}

View File

@@ -77,3 +77,7 @@ func isShutdownSignal(sig os.Signal) (ok bool) {
return false
}
}
func sendShutdownSignal(c chan<- os.Signal) {
c <- os.Interrupt
}