Re: shared memory: shm_has_var
| From: | Stanislav Malyshev | Date: | Mon, 11 Dec 2000 08:06:02 +0000 |
| Subject: | Re: shared memory: shm_has_var | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-40795@lists.php.net to get a copy of this message | ||
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).
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106