httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: graceful restarts, take 5
Date Tue, 22 Apr 1997 12:04:05 GMT
Dean Gaudet wrote:
> 
> Index: http_main.c
> ===================================================================
> RCS file: /export/home/cvs/apache/src/http_main.c,v
> retrieving revision 1.138
> diff -c -3 -r1.138 http_main.c
> *** http_main.c	1997/04/21 20:29:07	1.138
> --- http_main.c	1997/04/22 06:44:06
> ***************
> *** 1,3 ****
> --- 1,8 ----
> + /* XXX: systems without HAVE_SHMGET or HAVE_MMAP do not reliably update
> +  * the scoreboard because a received signal might interrupt the scoreboard
> +  * calls.
> +  */
> + 
>   /* ====================================================================
>    * Copyright (c) 1995-1997 The Apache Group.  All rights reserved.
> + #ifdef NO_KILLPG
> + #define ap_killpg(x, y)		(kill (-(x), (y)))
> + #else
> + #define ap_killpg(x, y)		(killpg ((x), (y)))
> + #endif
> + 
> + #if defined(USE_LONGJMP)
> + #define ap_longjmp(x, y)	(longjmp ((x), (y)))
> + #define ap_setjmp(x)		(setjmp (x))
> + #else
> + #define ap_longjmp(x, y)	(siglongjmp ((x), (y)))
> + #define ap_setjmp(x)		(sigsetjmp ((x), 1))
> + #endif
> + 

Wouldn't it make sense to fold these into conf.h or somewhere
like that... They may be needed in other files, not just
http_main.c
-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
                  "Not the Craw... the CRAW!"

Mime
View raw message