diff src/oct-procbuf.cc @ 3308:7ae1928ca623

[project @ 1999-10-21 08:57:11 by jwe]
author jwe
date Thu, 21 Oct 1999 08:57:14 +0000
parents 4964d5391acc
children 5c76d8f267f7
line wrap: on
line diff
--- a/src/oct-procbuf.cc
+++ b/src/oct-procbuf.cc
@@ -43,6 +43,7 @@
 
 #include "defun.h"
 #include "gripes.h"
+#include "utils.h"
 
 // Number of microseconds to delay in the parent after forking.
 #if defined (__CYGWIN32__)
@@ -112,13 +113,8 @@
       exit (127);
     }
 
-#if defined (HAVE_USLEEP)
   if (Vkluge_procbuf_delay > 0)
-    usleep (Vkluge_procbuf_delay);
-#else
-  if (Vkluge_procbuf_delay > 499999)
-    sleep ((Vkluge_procbuf_delay + 500000) / 1000000);
-#endif
+    octave_usleep (Vkluge_procbuf_delay);
 
   ::close (child_end);