[asterisk-commits] irroot: branch irroot/distrotech-customers-1.8 r325529 - /team/irroot/distrot...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 29 05:38:04 CDT 2011
Author: irroot
Date: Wed Jun 29 05:38:00 2011
New Revision: 325529
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=325529
Log:
Remove the timerfd patch added by mistake this is testing
Modified:
team/irroot/distrotech-customers-1.8/res/res_timing_timerfd.c
Modified: team/irroot/distrotech-customers-1.8/res/res_timing_timerfd.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-1.8/res/res_timing_timerfd.c?view=diff&rev=325529&r1=325528&r2=325529
==============================================================================
--- team/irroot/distrotech-customers-1.8/res/res_timing_timerfd.c (original)
+++ team/irroot/distrotech-customers-1.8/res/res_timing_timerfd.c Wed Jun 29 05:38:00 2011
@@ -162,35 +162,7 @@
uint64_t expirations;
int read_result = 0;
- struct timerfd_timer *our_timer, find_helper = {
- .handle = handle,
- };
-
- if (!(our_timer = ao2_find(timerfd_timers, &find_helper, OBJ_POINTER))) {
-// ast_log(LOG_ERROR, "Couldn't find timer with handle %d\n", handle);
- return;
- }
-
- if (our_timer->saved_timer.it_value.tv_nsec == 0L) {
-// ast_log(LOG_WARNING, "Reading attempt on idle timerfd. This would have caused a deadlock.\n");
- return;
- }
-
do {
- struct itimerspec timer_status;
-
- if (timerfd_gettime(handle, &timer_status)) {
-// ast_log(LOG_ERROR, "Call to timerfd_gettime() error: %s\n", strerror(errno));
- expirations = 0;
- break;
- }
-
- if ((timer_status.it_value.tv_sec == 0) && (timer_status.it_value.tv_nsec == 0)) {
-// ast_log(LOG_ERROR, "Call to timerfd_timer_ack() with disarmed timer - break now to avoiding deadlock!\n");
- expirations = 0;
- break;
- }
-
read_result = read(handle, &expirations, sizeof(expirations));
if (read_result == -1) {
if (errno == EINTR || errno == EAGAIN) {
More information about the asterisk-commits
mailing list