summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/ProcessUNIX.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-05-13 18:44:20 (GMT)
committerBrad King <brad.king@kitware.com>2005-05-13 18:44:20 (GMT)
commitb45071cc60b060a83fff14b9ee2e21b1ae53015a (patch)
tree009ab1565ef0c4cdba402aaa8995e1a477a6dc35 /Source/kwsys/ProcessUNIX.c
parent27ab5339637d97a57a29252ff4bc15c21bce067b (diff)
downloadCMake-b45071cc60b060a83fff14b9ee2e21b1ae53015a.zip
CMake-b45071cc60b060a83fff14b9ee2e21b1ae53015a.tar.gz
CMake-b45071cc60b060a83fff14b9ee2e21b1ae53015a.tar.bz2
ENH: Adding debugging code for freebsd.
Diffstat (limited to 'Source/kwsys/ProcessUNIX.c')
-rw-r--r--Source/kwsys/ProcessUNIX.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c
index 96e6ea7..3d0efd4 100644
--- a/Source/kwsys/ProcessUNIX.c
+++ b/Source/kwsys/ProcessUNIX.c
@@ -895,6 +895,15 @@ int kwsysProcess_WaitForData(kwsysProcess* cp, char** data, int* length,
break;
}
+#if defined(__FreeBSD__)
+ if(timeout && getenv("TEST_PROCESS_4"))
+ {
+ fprintf(stderr, "select with timeout %ld %ld\n",
+ timeout->tv_sec, timeout->tv_usec);
+ fflush(stderr);
+ }
+#endif
+
/* Run select to block until data are available. Repeat call
until it is not interrupted. */
while(((numReady = select(max+1, &cp->PipeSet, 0, 0, timeout)) < 0) &&