You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1996/04/29 17:18:23 UTC
Re: WWW Form Bug Report: "apache forks endlessly" on AIX3.2.5
Hi,
thanks for the info and patch.
regard,s
rob
>Submitter: grossm@rcs.urz.tu-dresden.de
>Operating system: AIX3.2.5, version: 1.1b2
>Version of Apache Used:
>Extra Modules used:
>URL exhibiting problem:
>
>Symptoms:
>--
>Apache forks endlessly. The reason is, that the
>scoreboard file is created by root and the childs
>couldn't read it (count_idle_servers() & Co. always
>return 0. My quick hack changes ownership of new
>scoreboard file:
>
>*** http_main.c.orig Thu Apr 18 15:00:11 1996
>--- http_main.c Mon Apr 29 16:58:48 1996
>***************
>*** 607,612 ****
>--- 607,619 ----
> perror (scoreboard_fname);
> exit (1);
> }
>+ /* give user permission to read/write scoreboard */
>+ if ( fchown(scoreboard_fd, user_id, group_id) ){
>+ fprintf(stderr, "Cannot chown scoreboard file to %d/%d:\n", user_id,
>+ group_id);
>+ perror(scoreboard_fname);
>+ exit(1);
>+ }
>
> memset ((char*)scoreboard_image, 0, sizeof(scoreboard_image));
> force_write (scoreboard_fd, (char*)scoreboard_image,
>
>I can't completly understand why it works with
>other OS but I assume it's a AIX security feature ;-)
>
>Olaf
>--
>
>Backtrace:
>--
>
>--
--
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb) http://www.imdb.com/
...more movie info than you can poke a stick at.