From: Alexey Chernobaev Date: Thu, 30 Aug 2018 18:58:05 +0000 (+0300) Subject: finish profctl in case of command stream EOF or read error X-Git-Tag: submit/tizen/20180911.125435~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa077bd84dc41676ea80218ad93b3d8d0b172ae4;p=sdk%2Ftools%2Fprofctl.git finish profctl in case of command stream EOF or read error --- diff --git a/profctl.c b/profctl.c index aeb24f2..6f8fe08 100644 --- a/profctl.c +++ b/profctl.c @@ -497,6 +497,7 @@ static void *command_loop_thread(void *arg) else { log_system_error("cannot read command"); } + global_stop = 1; break; } if (global_stop) { @@ -583,7 +584,7 @@ static void *command_loop_thread(void *arg) free(line); command_loop_thread_runs = 0; if (verbose) { - log_error("command loop finished"); + log_message("command loop finished"); } return NULL; }