]> git.gsnw.org Git - fping.git/commitdiff
Merge branch 'develop' of github.com:schweikert/fping into develop
authorDavid Schweikert <david@schweikert.ch>
Tue, 28 Jul 2020 06:24:08 +0000 (08:24 +0200)
committerDavid Schweikert <david@schweikert.ch>
Tue, 28 Jul 2020 06:24:08 +0000 (08:24 +0200)
1  2 
src/fping.c

diff --cc src/fping.c
index 5f83954b25831418b9979e3b7df1dbe99688ed4c,1efd4f8634afa40dddc1224699fa0dcbb380a5fd..605e834401f93e02f2b1b022b08424883ec609ed
@@@ -1359,10 -1391,15 +1375,15 @@@ void main_loop(
              break;
          }
  
+         /* end of loop was requested by interrupt signal handler */
+         if (finish_requested) {
+             break;
+         }
          /* Receive replies */
          /* (this is what sleeps during each loop iteration) */
 -        dbg_printf("waiting up to %ld ms\n", wait_time/100);
 -        if (wait_for_reply(wait_time)) {
 +        dbg_printf("waiting up to %ld ms\n", wait_time_ns / 1000000);
 +        if (wait_for_reply(wait_time_ns)) {
              while (wait_for_reply(0))
                  ; /* process other replies in the queue */
          }