httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <>
Subject Re: OS/2 abstraction
Date Wed, 01 Oct 1997 08:51:39 GMT
On Mon, 29 Sep 1997 17:24:23 -0700 (PDT), Paul Sutton wrote:

>The OS abstraction directory for emx (OS/2) was never completed because
>there was no way to test it. Now we have interest in the OS/2 port, it is
>time to finish the directory restructure to enable OS/2
>compilation/abstraction as well.
>What needs to happen is
> a. create an os/emx directory
> b. apply the Configure patch below to make EMX targets use this
>    directory 
> c. cp os/unix/* to os/emx
> d. edit os/emx/* as needed (i.e. copy the definition
>    of ap_is_path_absolute() from os/win32, fix INLINE if supported on
>    OS/2).
>I most likely won't have access to a computer from today until 6th Oct, so
>someone else might like to do this. 

OK, I've got 1.3b1-dev up and running on OS/2 (though with minimal testing,
just viewed a few manual pages through it). To get that far I had to fix a
few things:

1) All the changes I listed for 1.2.4 a while ago.

2) Creation of os/emx directory and files.

3) For reasons I couldn't determine, fork() was bombing in detach() but as
detaching isn't actually wanted (as with Win32) I changed the #ifndef WIN32
in detach() to 
#if !defined(WIN32) && !defined(__EMX__)
and the problem went away :-)

4) The size of the shared memory allocated for the scoreboard (in
setup_shared_mem()) was too small. Needs to be "SCOREBOARD_SIZE" instead of 
"HARD_SERVER_LIMIT * sizeof(short_score)". 

I also noticed that setup_shared_mem() messes with shared heap stuff
(_ucreate(), _uopen() etc) which looks quite unnecessary to me. Garey, is
there a reason for it? As far as I can see the scoreboard just needs a block
of shared memory, not its own heap.

As a newbie to the Apache development process, how do I submit a patch

If anyone wants to test it a bit, I'll keep it running for the next few hours

 |  Brian Havard                 |  "He is not the messiah!                   |
 |  |  He's a very naughty boy!" - Life of Brian |

View raw message