tmon_sig_handler
if (signal(SIGINT, tmon_sig_handler) == SIG_ERR)
if (signal(SIGTERM, tmon_sig_handler) == SIG_ERR)