diff --git a/turnip.c b/turnip.c index b46fc7e..82f6fdc 100644 --- a/turnip.c +++ b/turnip.c @@ -64,6 +64,11 @@ main(int argc, char *argv[]) { struct conf *cfg = conf_read("turnip.conf"); + /* ignore sigpipe */ +#ifdef SIGPIPE + signal(SIGPIPE, SIG_IGN); +#endif + redisAsyncContext *c = redisAsyncConnect(cfg->redis_host, cfg->redis_port); if(c->err) { /* Let *c leak for now... */