Re: System V Semaphores
| From: | Yasuo Ohgaki | Date: | Thu, 12 Apr 2001 03:54:41 +0000 |
| Subject: | Re: System V Semaphores | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48242@lists.php.net to get a copy of this message | ||
It means your OS does not allocate enough resources.
Linux:
$ ipcs -l -s
FreeBSD:
$ ipcs -S
Refer to your OS manual to change them.
Regards,
--
Yasuo Ohgaki
""Philip Murray"" <me@philth.net.nz> wrote in message
news:002e01c0c20a$b17e9ba0$0201a8c0@sparlak...
> Hi,
>
> I've been trying to use SystemV Semaphores as a kind of locking system in a
> webpage, but after a few hours I get this message:
>
> Warning: semget() failed for key 0x0: No space left on device in
> /1/home/xxxx/admin/htdocs/prop/lock.php on line 8
>
> Warning: 0 is not a SysV semaphore index in
> /1/home/xxxx/admin/htdocs/prop/lock.php on line 19
>
> Couldn't grab lock!
>
> It isn't disk space, and there's plenty of free memory. So how do I fix it
> and stop it doing it in the future?
>
> Apart from this it seems to work fine. I've attached some sample code which
> is pretty much exactly what I'm doing.
>
>
> Cheers
>
>
--------------------------------------------------------------------------------
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net