You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Ralph Ganszky <ra...@sap.com> on 2001/11/19 18:44:09 UTC
os-hpux/8803: Change to support HAVE_PTHREAD_SERIALIZED_ACCEPT in HPUX11
>Number: 8803
>Category: os-hpux
>Synopsis: Change to support HAVE_PTHREAD_SERIALIZED_ACCEPT in HPUX11
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: apache
>Arrival-Date: Mon Nov 19 09:50:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: ralph.ganszky@sap.com
>Release: 1.3.22
>Organization:
apache
>Environment:
HP-UX hostname B.11.00 E 9000/785 2006047808 8-user license
cpp.ansi: HP92453-01 A.11.01.20 HP C Preprocessor (ANSI)
ccom: HP92453-01 A.11.01.21505.GP HP C Compiler
>Description:
The code for HAVE_PTHREAD_SERIALIZED_ACCEPT is not portable to HPUX11 because there is no /dev/zero. But on HPUX it is possible to map pages anonymous as shown below. I run a server on the hardware described in the Environment window and it looks fine.
To run the server with PTHREAD_SERIALIZED_ACCEPT the ap_config.h file has to be changed.
Kind regards
Ralph Ganszky
677d649
< #if defined(SOLARIS2)
690,699d661
< #elif defined(HPUX11)
< accept_mutex = (pthread_mutex_t *) mmap((caddr_t) 0, sizeof(*accept_mutex),
< PROT_READ | PROT_WRITE,
< MAP_ANONYMOUS | MAP_VARIABLE | MAP_SHARED,
< -1, 0);
< if (accept_mutex == (void *) (caddr_t) - 1) {
< perror("mmap");
< exit(APEXIT_INIT);
< }
< #endif
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]