From f428d6c220975a8304339e777ccca921556a25c4 Mon Sep 17 00:00:00 2001 From: "ethan.du" Date: Thu, 6 Aug 2020 11:12:15 +0800 Subject: [PATCH] remove signal --- samples/mqtt/mqtt_sample.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/samples/mqtt/mqtt_sample.c b/samples/mqtt/mqtt_sample.c index 5ff187d..2791b68 100644 --- a/samples/mqtt/mqtt_sample.c +++ b/samples/mqtt/mqtt_sample.c @@ -184,9 +184,6 @@ static int _register_subscribe_topics(void *client) static void mqtt_test_thread(void) { int rc; - - // to avoid process crash when writing to a broken socket - signal(SIGPIPE, SIG_IGN); //init connection MQTTInitParams init_params = DEFAULT_MQTT_INIT_PARAMS;