httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@Fujitsu-Siemens.com>
Subject Re: [PATCH] support for QNX6 platform (aka QNX/Neutrino aka QNX RTP)
Date Thu, 08 Nov 2001 12:09:29 GMT
On Thu, Nov 08, 2001 at 02:43:18AM -0600, Igor Kovalenko wrote:
> Here goes patch against released 1.3.22. It adds complete support for QNX6,
> including DSO. I have actually built PHP shared module using APXS and it
> worked. Serialized accept is done using POSIX mutexes.

I disagree with the change in this part (it is not QNX specific and
can affect other platforms):

> diff -u -r apache_1.3.22.patched/src/include/httpd.h apache_1.3.22/src/include/httpd.h
> --- apache_1.3.22.patched/src/include/httpd.h Thu Oct 18 01:06:10 2001
> +++ apache_1.3.22/src/include/httpd.h Mon Oct 8 21:56:05 2001
> @@ -1189,7 +1189,7 @@
> * also not using a scoreboard file
> */
> #if !defined (MULTITHREAD) && \
> - (defined (USE_MMAP_SCOREBOARD) || defined (USE_SHMGET_SCOREBOARD) || defined(USE_POSIX_SCOREBOARD))
> + (defined (USE_MMAP_SCOREBOARD) || defined (USE_SHMGET_SCOREBOARD))
> #define OPTIMIZE_TIMEOUTS
> #endif

...and with the removal of this part (it is not QNX specific and
can affect other platforms):

> diff -u -r apache_1.3.22.patched/src/main/http_main.c apache_1.3.22/src/main/http_main.c
> --- apache_1.3.22.patched/src/main/http_main.c Thu Oct 18 01:44:45 2001
> +++ apache_1.3.22/src/main/http_main.c Fri Oct 5 20:21:11 2001
> @@ -647,15 +645,6 @@
> static void accept_mutex_init_pthread(pool *p)
> {
> pthread_mutexattr_t mattr;
> -
> -#ifdef MAP_ANON
> - accept_mutex = (pthread_mutex_t *) mmap((caddr_t) 0, sizeof(*accept_mutex),
> - PROT_READ | PROT_WRITE, MAP_ANON|MAP_SHARED, NOFD, 0);
> - if (accept_mutex == (void *) (caddr_t) - 1) {
> - perror("mmap");
> - exit(APEXIT_INIT);
> - }
> -#else
> int fd;
> 
> fd = open("/dev/zero", O_RDWR);

   Martin
-- 
<Martin.Kraemer@Fujitsu-Siemens.com>         |     Fujitsu Siemens
Fon: +49-89-636-46021, FAX: +49-89-636-47655 | 81730  Munich,  Germany

Mime
View raw message