Re: shared memory: shm_has_var

From: Date: Mon, 11 Dec 2000 15:59:03 +0000
Subject: Re: shared memory: shm_has_var
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-40850@lists.php.net to get a copy of this message
On Mon, 11 Dec 2000, Stanislav Malyshev wrote: > IV>> > On a somewhat related issue, why is shared memory is > IV>> maintained even when > apache is shutdown and then restarted? > > IV>> > -Matt > IV>> > IV>> shm_* is an OS detail, not a web server detail. In order to wipe > IV>> shared memory that way you'd have to restart the OS, not the web > IV>> server. > > Not true. You can pre-delete shared memory segment (just as you can do > with files) and then it will be automatedly destroyed by the OS in the > moment it has no attachments. You cannot do this with semaphores, however > (AFAIK, there's no way to safely clean up semaphores). > Oh, absolutely. But the memory segment won't necessarily be destroyed when Apache is restarted. -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.dev (#40850) next »