]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ntpd.c:
authorFrank Kardel <kardel@ntp.org>
Tue, 9 May 2006 09:56:16 +0000 (09:56 +0000)
committerFrank Kardel <kardel@ntp.org>
Tue, 9 May 2006 09:56:16 +0000 (09:56 +0000)
  keep block/unblock calls balanced

bk: 44606740wdHnqCJOUcD5CSEcMsRCbg

ntpd/ntpd.c

index 99c8ddf770e557c2df6894abd52b1283f0715ef7..43497ed44128238c81f9c442914a1283189e30c4 100644 (file)
@@ -412,7 +412,6 @@ ntpdmain(
        )
 {
        l_fp now;
-       int tot_full_recvbufs;
        struct recvbuf *rbuf;
 #ifdef _AIX                    /* HMS: ifdef SIGDANGER? */
        struct sigaction sa;
@@ -873,9 +872,12 @@ getgroup:
 #if defined(HAVE_IO_COMPLETION_PORT)
 
        for (;;) {
-               tot_full_recvbufs = GetReceivedBuffers();
+               int tot_full_recvbufs = GetReceivedBuffers();
 #else /* normal I/O */
 
+#if defined(HAVE_SIGNALED_IO)
+       block_io_and_alarm();
+# endif
        was_alarmed = 0;
        for (;;)
        {
@@ -885,8 +887,6 @@ getgroup:
 
                fd_set rdfdes;
                int nfound;
-# elif defined(HAVE_SIGNALED_IO)
-               block_io_and_alarm();
 # endif
 
                if (alarm_flag)         /* alarmed? */