manoj 99/08/31 14:37:10
Modified: src/modules/experimental mod_mmap_static.c Log: ap_{block,unblock}_alarms aren't needed anymore, so take them out. Revision Changes Path 1.4 +0 -9 apache-2.0/src/modules/experimental/mod_mmap_static.c Index: mod_mmap_static.c =================================================================== RCS file: /home/cvs/apache-2.0/src/modules/experimental/mod_mmap_static.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -u -r1.3 -r1.4 --- mod_mmap_static.c 1999/08/31 05:33:15 1.3 +++ mod_mmap_static.c 1999/08/31 21:37:08 1.4 @@ -122,12 +122,6 @@ #include "http_request.h" #include "http_core.h" -/* XXX - ap_{block,unblock}_alarms aren't used right now, but they could - * be, so just #define them away for now */ - -#define ap_block_alarms() -#define ap_unblock_alarms() - module MODULE_VAR_EXPORT mmap_static_module; typedef struct { @@ -184,7 +178,6 @@ "mmap_static: %s isn't a regular file, skipping", filename); return NULL; } - ap_block_alarms(); fd = open(filename, O_RDONLY, 0); if (fd == -1) { ap_log_error(APLOG_MARK, APLOG_WARNING, cmd->server, @@ -195,7 +188,6 @@ if (mm == (caddr_t)-1) { int save_errno = errno; close(fd); - ap_unblock_alarms(); errno = save_errno; ap_log_error(APLOG_MARK, APLOG_WARNING, cmd->server, "mmap_static: unable to mmap %s, skipping", filename); @@ -211,7 +203,6 @@ /* first one, register the cleanup */ ap_register_cleanup(cmd->pool, sconf, cleanup_mmap, ap_null_cleanup); } - ap_unblock_alarms(); return NULL; }