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 c728efdbb9.
This commit is contained in:
Travis Cross 2012-05-08 20:45:05 +00:00
parent 9d34118467
commit c985853cbf
1 changed files with 1 additions and 3 deletions

View File

@ -111,9 +111,7 @@ static void timer_signal_handler(int sig, siginfo_t *si, void *cu)
if (val >= 0 && val <= MAX_ACTIVE_TIMERS) {
uint8_t active_id = (uint8_t)val;
/* notify runtime thread that timer identified by active_id has ticked */
if (write(globals.timer_tick_pipe[1], &active_id, 1) == -1) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error writing to pipe: %s\n", strerror(errno));
}
write(globals.timer_tick_pipe[1], &active_id, 1);
}
}
}