int debug_newline = 1;
int nooutput = 0;
+void debug_usleep(int msec, char *file, int line, int hour, int min, int sec)
+{
+ usleep(msec);
+}
+
void debug(const char *function, int line, char *prefix, char *buffer)
{
/* if we have a new debug count, we add a mark */
/* all loops must be counted from the beginning since nodes might get freed during handler */
all_idle = 1;
+#warning debugging usleep crash
+ debug_usleep(1, __FILE__, __LINE__, now_tm->tm_hour, now_tm->tm_min, now_tm->tm_sec);
+
/* handle mISDN messages from kernel */
debug_prefix = "ISDN";
if (mISDN_handler())
all_idle = 0;
+#warning debugging usleep crash
+ debug_usleep(1, __FILE__, __LINE__, now_tm->tm_hour, now_tm->tm_min, now_tm->tm_sec);
+
#ifdef DEBUG_DURATION
GET_NOW();
isdn_duration += (now_d - start_d);
all_idle = 0;
}
#endif
+#warning debugging usleep crash
+ debug_usleep(1, __FILE__, __LINE__, now_tm->tm_hour, now_tm->tm_min, now_tm->tm_sec);
/* do idle checking */
if (idlecheck != now)
/* did we do nothing? so we wait to give time to other processes */
if (all_idle)
{
- usleep(4000); /* wait 32 samples */
+ debug_usleep(4000, __FILE__, __LINE__, now_tm->tm_hour, now_tm->tm_min, now_tm->tm_sec);
idletime += 4000;
}
}