updates.
authorPekka Riikonen <priikone@silcnet.org>
Mon, 18 Jun 2001 06:49:23 +0000 (06:49 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 18 Jun 2001 06:49:23 +0000 (06:49 +0000)
lib/silcutil/silcschedule.c

index 4a7522200075ba941c353f8c7c07570449c697a3..abc0043cba9a92d9b1b2dc3585bab9d33a542031 100644 (file)
@@ -476,6 +476,12 @@ int silc_schedule_one(int timeout_usecs)
     /* Error */
     if (errno == EINTR)
       break;
+#if 1
+    if (errno == EINVAL && schedule.timeout) {
+      SILC_LOG_ERROR(("Invalid argument (invalid timeout): %lu %lu",
+                     schedule.timeout->tv_sec, schedule.timeout->tv_usec));
+    }
+#endif
     SILC_LOG_ERROR(("Error in select(): %s", strerror(errno)));
     break;
   case 0: