httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7838] - Apache leaves shared memory segments and dies after unclean shutdown
Date Fri, 19 Apr 2002 01:09:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7838>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7838

Apache leaves shared memory segments and dies after unclean shutdown





------- Additional Comments From matthew@davin.ottawa.on.ca  2002-04-19 01:09 -------

I am running the following procedure before starting the web server, but
the web server doesn't always start... It still gives an error.  What am 
I doing wrong?  Linux 2.4.18


       [Thu Apr 18 16:03:40 2002] [crit] (17)File exists: unable to create
scoreboard
       (name-based shared memory failure)



sub clean_shared_memory {
        if (! open (PROC, "<", "/proc/sysvipc/shm")) {
                warn "Cannot open proc filesystem: $!\n";
                return;
        }

        # key shmid perms size cpid lpid nattch uid gid cuid cgid atime dtime ctime
        while (<PROC>) {
                my ($shmid, $uid) = (split (/\s+/))[2,8];
                next if ($uid ne "405");
                if (! shmctl($shmid, IPC_RMID, 0)) {
                        warn "Cannot remove shared memory segment=<$shmid>: $!\n";
                        return;
                }
                print "Removed shared memory segment=<$shmid>\n";
        }
        close (PROC);
}

Mime
View raw message