logs: skip logging SIGPIPE signal (#26582)

This commit is contained in:
Michael Smithhisler
2025-08-21 09:08:49 -04:00
committed by GitHub
parent d8342aed76
commit da4cf07ff4
2 changed files with 8 additions and 3 deletions

3
.changelog/26582.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:bug
logs: skip logging SIGPIPE
```

View File

@@ -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()