mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
logs: skip logging SIGPIPE signal (#26582)
This commit is contained in:
committed by
GitHub
parent
d8342aed76
commit
da4cf07ff4
3
.changelog/26582.txt
Normal file
3
.changelog/26582.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
logs: skip logging SIGPIPE
|
||||
```
|
||||
@@ -1062,12 +1062,14 @@ func (c *Command) handleSignals() int {
|
||||
for {
|
||||
select {
|
||||
case sig := <-signalCh:
|
||||
// Skip any SIGPIPE signal (see issues #1798, #3554)
|
||||
if sig == syscall.SIGPIPE {
|
||||
continue
|
||||
}
|
||||
|
||||
c.Ui.Output(fmt.Sprintf("Caught signal: %v", sig))
|
||||
|
||||
switch sig {
|
||||
case syscall.SIGPIPE:
|
||||
// Skip any SIGPIPE signal (see issues #1798, #3554)
|
||||
continue
|
||||
case syscall.SIGHUP:
|
||||
sdNotifyReloading(sdSock)
|
||||
err := c.handleReload()
|
||||
|
||||
Reference in New Issue
Block a user