]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix(redis-storage): Ignore SIGPIPE
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 9 Sep 2021 18:55:53 +0000 (20:55 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 9 Sep 2021 19:34:53 +0000 (21:34 +0200)
commitb2a88e7b885cd43882b525fdaf2b57dd931a0427
tree0fae90d7d05648883df096986a05037f263144b8
parentafc89032c0805daf0236df95e0a18177fd46dc75
fix(redis-storage): Ignore SIGPIPE

libhiredis doesn’t pass MSG_NOSIGNAL to send to ccache can die from
SIGPIPE. Disable SIGPIPE so that the socket code receives EPIPE
correctly.

This should also fix a similar problem with the HTTP storage backend.

Fixes #931.
src/SignalHandler.cpp