ignore SIGPIPE

This commit is contained in:
Jan-Piet Mens 2016-01-20 08:05:52 +01:00
parent b06199b542
commit 4980495008

View File

@ -1508,6 +1508,7 @@ int main(int argc, char **argv)
signal(SIGINT, catcher);
signal(SIGTERM, catcher);
signal(SIGPIPE, SIG_IGN);
mosq = mosquitto_new(UB(clientid), CLEAN_SESSION, (void *)&udata);
if (!mosq) {