Update of /cvsroot/stack/stack-1-0/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2667/scripts
Modified Files:
Tag: development_xmlrqp
stackWin.php
Log Message:
Index: stackWin.php
===================================================================
RCS file: /cvsroot/stack/stack-1-0/scripts/stackWin.php,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -C2 -d -r1.7.2.1 -r1.7.2.2
*** stackWin.php 19 Aug 2005 16:16:45 -0000 1.7.2.1
--- stackWin.php 23 Aug 2005 15:55:08 -0000 1.7.2.2
***************
*** 81,84 ****
--- 81,85 ----
global $stack_root,$stack_logfiles,$stack_cas;
+ $debug = FALSE;
$ret = FALSE;
***************
*** 103,107 ****
// read output from stdout
$start_time = stack_microtime_float();
! while (!feof($pipes[1])) {
$out = fgets($pipes[1], 1024);
if ('' == $out) {
--- 104,110 ----
// read output from stdout
$start_time = stack_microtime_float();
! $continue = TRUE;
! if ($debug) { echo '<pre>'; };
! while (!feof($pipes[1]) and $continue) {
$out = fgets($pipes[1], 1024);
if ('' == $out) {
***************
*** 110,118 ****
}
$ret .= $out;
! //echo $out;
$now = stack_microtime_float();
// if (($now-$start_time) > 0.3) {
// // CTRL+C should be ASCII 3.
// //fwrite($pipes[0], chr(3));
// fwrite($pipes[0], chr(27)."[13~");
// fflush($pipes[0]);
--- 113,123 ----
}
$ret .= $out;
! if ($debug) { echo $out; }
$now = stack_microtime_float();
// if (($now-$start_time) > 0.3) {
// // CTRL+C should be ASCII 3.
// //fwrite($pipes[0], chr(3));
+ // $continue = FALSE;
+ // echo "STOP!";
// fwrite($pipes[0], chr(27)."[13~");
// fflush($pipes[0]);
***************
*** 121,127 ****
fclose($pipes[0]);
fclose($pipes[1]);
! //$time_taken = $now-$start_time;
! //echo "Start: $start_time<br >End: $now<br >Taken = $time_taken";
!
} else {
--- 126,134 ----
fclose($pipes[0]);
fclose($pipes[1]);
! $time_taken = $now-$start_time;
! if ($debug) {
! echo "</pre>";
! echo "Start: $start_time<br >End: $now<br >Taken = $time_taken";
! };
} else {
|