Fixed the initscript for vsys.
authorSapan Bhatia <sapanb@cs.princeton.edu>
Tue, 8 Jul 2008 16:08:56 +0000 (16:08 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Tue, 8 Jul 2008 16:08:56 +0000 (16:08 +0000)
tests/vsys_conctest.c
vsys-initscript

index 5c751a7..2d174a0 100644 (file)
@@ -20,7 +20,7 @@ int main()
   int count = 1;
   struct timeval tv={.tv_sec=5,.tv_usec=0};
 
-  while (count < 100000) {
+  while (count < 1000000) {
     fd_set readSet;
     int res;
     int nlines=0;
@@ -37,7 +37,6 @@ int main()
       fprintf(stderr, "Waiting for %s (%s)\n", top_in_file,strerror(errno));
        usleep (50); 
     }
-    printf("%d open\n",fd_in);
 
     //printf("(1)");
     if ((flag = fcntl(fd_out, F_GETFL)) == -1) {
index d4fecdf..cfeba9a 100755 (executable)
@@ -38,7 +38,7 @@ case "$1" in
     stop)
         echo -n "Stopping $name:"
         killproc $name
-        killproc $name
+        #killproc $name - Why were there 2 instances of this? :-|
         RETVAL=$?
         echo
         [ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}