[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11910 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11910 - gnunet/src/util |
Date: |
Wed, 23 Jun 2010 17:20:40 +0200 |
Author: grothoff
Date: 2010-06-23 17:20:40 +0200 (Wed, 23 Jun 2010)
New Revision: 11910
Modified:
gnunet/src/util/scheduler.c
Log:
diag
Modified: gnunet/src/util/scheduler.c
===================================================================
--- gnunet/src/util/scheduler.c 2010-06-23 14:43:33 UTC (rev 11909)
+++ gnunet/src/util/scheduler.c 2010-06-23 15:20:40 UTC (rev 11910)
@@ -31,7 +31,14 @@
#include "gnunet_time_lib.h"
#ifdef LINUX
#include "execinfo.h"
+
/**
+ * Use lsof to generate file descriptor reports on select error?
+ * (turn of for stable releases).
+ */
+#define USE_LSOF GNUNET_YES
+
+/**
* Obtain trace information for all scheduler calls that schedule tasks.
*/
#define EXECINFO GNUNET_NO
@@ -658,6 +665,15 @@
if (errno == EINTR)
continue;
GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "select");
+#ifndef MINGW
+#if USE_LSOF
+ char lsof[512];
+ snprintf (lsof, sizeof (lsof), "lsof -p %d", getpid());
+ close (1);
+ dup2 (2, 1);
+ system (lsof);
+#endif
+#endif
abort ();
break;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11910 - gnunet/src/util,
gnunet <=