From c237c1eccbaab19c875467bb4b6797790c1f4740 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Wed, 24 Jan 2007 20:51:34 -0500 Subject: [PATCH] Check for alarm in configure.ac. Forgot to remove some debugging stuff. Fixed. --- configure.ac | 2 +- doc/pwmd.1 | 3 +-- src/pwmd.c | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index e02e1b4f..49e11f9d 100644 --- a/configure.ac +++ b/configure.ac @@ -76,7 +76,7 @@ AC_FUNC_STRFTIME AC_FUNC_SELECT_ARGTYPES AC_CHECK_FUNCS([mkdir strerror memset select socket strcasecmp strdup \ strncasecmp strchr setrlimit mlock mlockall ftruncate \ - getcwd memmove munmap strrchr strtol strstr]) + getcwd memmove munmap strrchr strtol strstr alarm]) AC_DEFUN([AC_DEBUG], [ diff --git a/doc/pwmd.1 b/doc/pwmd.1 index 178a32b0..23c7e965 100644 --- a/doc/pwmd.1 +++ b/doc/pwmd.1 @@ -75,8 +75,7 @@ will still be used for the file cache. The default is \fBfalse\fR. .TP .I "cache_size=" Specfies the size of the file cache. Must be in multiples of your systems -\fBPAGE_SIZE\fR. The default is one page which on Linux-x86 is 4096 bytes or -78 files. +\fBPAGE_SIZE\fR. The default is one page. .TP .I "log_path=" Logs informational messages to the specified file. The default is diff --git a/src/pwmd.c b/src/pwmd.c index 005759f7..4a2da86b 100644 --- a/src/pwmd.c +++ b/src/pwmd.c @@ -1424,13 +1424,11 @@ int main(int argc, char *argv[]) signal(SIGALRM, catchsig); alarm(1); -#if 0 #ifndef DEBUG close(0); close(1); close(2); #endif -#endif log_write("%s starting: %li slots available", PACKAGE_STRING, cache_size / sizeof(file_cache_t)); -- 2.11.4.GIT