#28197 [Fbk->Csd]: msg_receive doesn't block

From: Date: Wed, 28 Apr 2004 12:47:26 +0000
Subject: #28197 [Fbk->Csd]: msg_receive doesn't block
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58943@lists.php.net to get a copy of this message
ID: 28197 User updated by: neo at gothic-chat dot de Reported By: neo at gothic-chat dot de -Status: Feedback +Status: Closed Bug Type: Semaphore related Operating System: FreeBSD 5.1 PHP Version: 4.3.4 New Comment: Kernel errno was 13 -> 62 #define EACCES 13 /* Permission denied */ Doubleckecked permissions, now working. Sorry. Previous Comments: ------------------------------------------------------------------------ [2004-04-28 09:32:45] wez@php.net And does it emit a warning or error message? ------------------------------------------------------------------------ [2004-04-28 02:11:27] neo at gothic-chat dot de Description: ------------ On my developement-system (FreeBSD 5.1), msg_receive doesn't block until a new message arrives, even if MSG_IPC_NOWAIT is not passed to flags. msg_receive will return immediately, returning false. Reproduce code: --------------- while (true) { $rcv = msg_receive ($key, 0, $msg_type, 65536, $msginfo, true, 0); var_dump ($rcv)); } Expected result: ---------------- The script should block until msg_receive returns true ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28197&edit=1

« previous php.bugs (#58943) next »