Sven Velt 11 년 전
부모
커밋
957ea28259
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  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);
 		}