apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)" <madhusudan_mathiha...@hp.com>
Subject RE: [PATCH] Regarding semun definition in proc_mutex.h
Date Thu, 27 Jun 2002 18:00:23 GMT
Yep - with HP-UX running on 64-bit Itanium, and using the 64-bit data model.
The side effect of having the "long val" in the union definition is that
it'll have corrupted the mutex/semaphore while creating the proc_mutex
itself (proc_mutex_sysv_create). On HP-UX, the symptom was that the
listener_thread hangs while doing a SAFE_ACCEPT.


-----Original Message-----
From: Jeff Trawick [mailto:trawick@attglobal.net]
Sent: Thursday, June 27, 2002 10:57 AM
Cc: 'dev@apr.apache.org'
Subject: Re: [PATCH] Regarding semun definition in proc_mutex.h

"MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)" <madhusudan_mathihalli@hp.com>

> On platforms where the semun union is not available, the APR defines the
> semun structure - but I believe the first parameter should be a "int val"
> and not "long val". I verified it on HP-UX and Linux (both 32-bit and
> systems).
> BTW, we were able to get Apache (2.0.39) to work on the HP-UX / Itanium
> architecture without any other problems. Great work !!.

So I guess sizeof(long) is 8 bytes on 64-bit HP-UX?  sizeof(long) is
still 4 on 64-bit AIX.

Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...

View raw message