This patch fixes minor defects from svace analysis.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
void set_appid (string appid) { appid_ = appid; }
void set_interval (string interval) { interval_ = interval; }
+ static bool signal_exit;
+
private:
uint32_t get_api_level ();
bool parse_device_node (dev_type & type, int & dev_id);
return interval;
}
-static void do_exit(int status)
-{
- endwin();
- exit(status);
-}
+bool TrinitySMI::signal_exit = false;
static void die(int notused)
{
- (void) notused;
- do_exit(0);
+ TrinitySMI::signal_exit = true;
}
int
if (interval != 0)
sleep (interval);
- } while (use_curses);
+ } while (use_curses && !TrinitySMI::signal_exit);
if (use_curses)
endwin();