]> granicus.if.org Git - pwauth/commitdiff
Rearranged ifdefs so that undefining SLEEP_LOCK completely disables the sleep on...
authorjan@unixpapa.com <jan@unixpapa.com@c81c378c-2084-11de-9b1d-7d4d678aad79>
Thu, 11 Jun 2009 13:48:26 +0000 (13:48 +0000)
committerjan@unixpapa.com <jan@unixpapa.com@c81c378c-2084-11de-9b1d-7d4d678aad79>
Thu, 11 Jun 2009 13:48:26 +0000 (13:48 +0000)
pwauth/main.c

index cc646c73ffd9189440da8a38c44d26381a012eda..ea9e9c7caff204ceb178bfdf0a3ff7c0bedf9c74 100644 (file)
@@ -123,7 +123,9 @@ main(int argc, char **argv)
 #ifdef UNIX_LASTLOG
        lastlog();
 #endif
+#ifdef SLEEP_LOCK
        snooze(0);
+#endif
        exit(STATUS_OK);
     }
     else
@@ -132,7 +134,9 @@ main(int argc, char **argv)
 #ifdef KEEP_FAILLOG
        log_failure();
 #endif
+#ifdef SLEEP_LOCK
        snooze(SLEEP_TIME);
+#endif
        exit(status);
     }
 }