httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: catching setgid error?
Date Tue, 14 Apr 1998 12:28:40 GMT
Dean Gaudet wrote:
> 
> In 1.2 it was a fatal error.  This bug was introduced when I fixed the
> "log files are created with the wrong group" bug by moving the setgid to
> the child.
> 
> But I'm not sure how portable it would be to do a test setgid in the
> parent and then setgid back...

Hmmm... most likely not too portable unfortunately. The "normal"
setgid sets all process group ID (real, effective, saved) to gid,
so there's no way to "go back" normally. Ugg.

> 
> A more portable solution, and more general, would be for a special child
> exit code (say, 42 for example) that means to the parent "abort everything
> immediately, something is fatally wrong".  There's a few other errors
> which are of similar caliber.

You're right, 'natch. 

-- 
===========================================================================
   Jim Jagielski   |||   jim@jaguNET.com   |||   http://www.jaguNET.com/
            "That's no ordinary rabbit... that's the most foul,
            cruel and bad-tempered rodent you ever laid eyes on"

Mime
View raw message