提交 c985853c authored 作者: Travis Cross's avatar Travis Cross

mod_posix_timer: we'll find a better way to comply with gcc -pedantic on lucid

We shouldn't be logging in a signal handler.

This reverts commit c728efdb.
上级 9d341184
...@@ -111,9 +111,7 @@ static void timer_signal_handler(int sig, siginfo_t *si, void *cu) ...@@ -111,9 +111,7 @@ static void timer_signal_handler(int sig, siginfo_t *si, void *cu)
if (val >= 0 && val <= MAX_ACTIVE_TIMERS) { if (val >= 0 && val <= MAX_ACTIVE_TIMERS) {
uint8_t active_id = (uint8_t)val; uint8_t active_id = (uint8_t)val;
/* notify runtime thread that timer identified by active_id has ticked */ /* notify runtime thread that timer identified by active_id has ticked */
if (write(globals.timer_tick_pipe[1], &active_id, 1) == -1) { write(globals.timer_tick_pipe[1], &active_id, 1);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error writing to pipe: %s\n", strerror(errno));
}
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论