From 660c0f41988ab30cecde1b296430ae53d03b5a56 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Tue, 8 Jul 2008 16:08:56 +0000 Subject: [PATCH] Fixed the initscript for vsys. --- tests/vsys_conctest.c | 3 +-- vsys-initscript | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/vsys_conctest.c b/tests/vsys_conctest.c index 5c751a7..2d174a0 100644 --- a/tests/vsys_conctest.c +++ b/tests/vsys_conctest.c @@ -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) { diff --git a/vsys-initscript b/vsys-initscript index d4fecdf..cfeba9a 100755 --- a/vsys-initscript +++ b/vsys-initscript @@ -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} -- 2.43.0