Sven Velt 11 år sedan
förälder
incheckning
957ea28259
2 ändrade filer med 5 tillägg och 3 borttagningar
  1. 1 1
      Makefile
  2. 4 2
      arexxd.c

+ 1 - 1
Makefile

@@ -1,4 +1,4 @@
-VERSION=1.0
+VERSION=1.1
 ARCHIVE=arexxd-$(VERSION).tar.gz
 
 CC=gcc

+ 4 - 2
arexxd.c

@@ -563,9 +563,11 @@ int main(int argc, char **argv)
 			want_sleep = 1;
 			if (err > 0 && parse_packet(reply))
 				want_sleep = 0;
-			want_stats = 1;
 			sigprocmask(SIG_UNBLOCK, &term_sigs, NULL);
-			sleep(4);
+			if (want_sleep) {
+				sleep(4);
+				want_stats = 1;
+			}
 			sigprocmask(SIG_BLOCK, &term_sigs, NULL);
 		}