You are absolutely right and I will look at the Windows MPM. As it turns out,
NetWare will require its own MPM for much larger reasons than this. But the question
is, would basing the server_root off of argv[0] only benefit NetWare or are there
other platforms that can benefit from it also? If it is of benefit to NetWare and
NetWare only, then I absolutely agree with your argument and I will find a NetWare
specific way to solve the problem. But if it is of benefit to other platforms,
wouldn't it be a good thing to make it generally available rather than requiring each
platform to implement it? I would really like some feedback from other platforms,
positive or negative.
thanks,
Brad
>>> Ryan Bloom <[EMAIL PROTECTED]> Thursday, September 13, 2001 4:24:11 PM >>>
On Thursday 13 September 2001 01:55 pm, Brad Nicholes wrote:
I really dislike this. Netware included a hack in 1.3 to use the argv from cwd.
There are much cleaner ways to do this in 2.0. Which MPM are you using?
Why not just create a Netware specific module that has a rewrite_args
function that sets ap_server_root to the correct argv?
This is what Windows does, and it does work. This is also what Bill has been
trying to explain to you. Please look at server/mpm/winnt/mpm_winnt.c, for the
function winnt_rewrite_args. You need to have your own MPM to make this
work currently, but it would be a simple thing to make standard modules have
access to the re-write args hook.
Ryan
> I would like to propose the following code changes for main.c. These
> changes will allow a platform to use a relative server root that is based
> on argv[0] rather than a hard coded server root. If these changes seem
> fair, I would like to check them in.
>
> thanks,
> Brad
--
______________________________________________________________
Ryan Bloom [EMAIL PROTECTED]
Covalent Technologies [EMAIL PROTECTED]
--------------------------------------------------------------