Bug #80050 [Com]: msg_receive is awakened by error code 43

From: Date: Sun, 06 Aug 2023 13:35:32 +0000
Subject: Bug #80050 [Com]: msg_receive is awakened by error code 43
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245113@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80050&edit=1 ID: 80050 Comment by: milan dot matejcek at gmail dot com Reported by: milan dot matejcek at gmail dot com Summary: msg_receive is awakened by error code 43 Status: Open Type: Bug Package: Semaphore related Operating System: raspbian / ubuntu PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Hello, you can close this issue, because i found bug. I forgot to use ftok() for first parameter for method msg_get_queue($key). I'm sorry. Previous Comments: ------------------------------------------------------------------------ [2020-09-03 16:04:50] milan dot matejcek at gmail dot com Description: ------------ sysvmsg extension I tested on arm raspbian buster 10, 32 bit (php 7.3.19) and ubuntu 20.04, 64 bit (php 7.4.9), both are same. I have long running process, which is executed by supervisor, where is passive waiting for message from queue, but this waiting is sometimes awakened by error code 43. I checked that the supervisor runs only one php process and the PID is still the same. Is there anything what clean resources or queues? If i have two processes and different queue key, than both return error 43 in same time. Test script: --------------- I create repository on Github: https://github.com/h4kuna/msg Expected result: ---------------- Passive waiting without awakened ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80050&edit=1

« previous php.bugs (#245113) next »