Ignore SIGPIPE events, resolves #19728 · SourceCode/docker@55a367d · GitHub
Skip to content

Commit 55a367d

Browse files
committed
Ignore SIGPIPE events, resolves moby#19728
Using golang 1.6, is it now possible to ignore SIGPIPE events on stdout/stderr. Previous versions of the golang library cached 10 events and then killed the process receiving the events. systemd-journald sends SIGPIPE events when jounald is restarted and the target of the unit file writes to stdout/stderr. Docker logs to stdout/stderr. This patch silently ignores all SIGPIPE events. Signed-off-by: Jhon Honce <jhonce@redhat.com>
1 parent 91bc4cc commit 55a367d

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

cmd/dockerd/daemon.go

Lines changed: 5 additions & 5 deletions

pkg/signal/trap.go

Lines changed: 9 additions & 2 deletions

0 commit comments

Comments
 (0)