You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Jim Jagielski <ji...@jaguNET.com> on 2002/09/21 20:23:38 UTC
Apache directives controlling APR behavior
How would people say would be the best way to port the ShmemUIDisUser
code from 1.3 to 2.0/APR... Should I use a simple global var or wrap
that in some sort of apr_set_sysv_uid(...)/apr_get_sysv_uid() pair
which allows the state to be function oriented rather than variable
oriented. I'm leaning towards an apr_whatever global, since that's
what we seem to be doing, but I *hate* blurring those lines.
--
===========================================================================
Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
"A society that will trade a little liberty for a little order
will lose both and deserve neither" - T.Jefferson
Re: Apache directives controlling APR behavior
Posted by Aaron Bannert <aa...@clove.org>.
On Sat, Sep 21, 2002 at 11:32:30AM -0700, Justin Erenkrantz wrote:
> On Sat, Sep 21, 2002 at 02:23:38PM -0400, Jim Jagielski wrote:
> > How would people say would be the best way to port the ShmemUIDisUser
> > code from 1.3 to 2.0/APR... Should I use a simple global var or wrap
> > that in some sort of apr_set_sysv_uid(...)/apr_get_sysv_uid() pair
> > which allows the state to be function oriented rather than variable
> > oriented. I'm leaning towards an apr_whatever global, since that's
> > what we seem to be doing, but I *hate* blurring those lines.
>
> +1 apr_{get|set}_sysv_{uid|gid}.
> -0 on global vars that httpd would tickle. Ick. -- justin
Ooh, that's a tough one. On the one hand, setters and getters for
uid/gid won't really be portable to systems that don't have the concept
of uid/gid. OTOH, I don't see any better way to do it (and I don't
like the idea of global vars).
+1 for apr_get_sysv_uid() (might I suggest having _set() on the end?)
-aaron
Re: Apache directives controlling APR behavior
Posted by Justin Erenkrantz <je...@apache.org>.
On Sat, Sep 21, 2002 at 02:23:38PM -0400, Jim Jagielski wrote:
> How would people say would be the best way to port the ShmemUIDisUser
> code from 1.3 to 2.0/APR... Should I use a simple global var or wrap
> that in some sort of apr_set_sysv_uid(...)/apr_get_sysv_uid() pair
> which allows the state to be function oriented rather than variable
> oriented. I'm leaning towards an apr_whatever global, since that's
> what we seem to be doing, but I *hate* blurring those lines.
+1 apr_{get|set}_sysv_{uid|gid}.
-0 on global vars that httpd would tickle. Ick. -- justin