2

i use on my one personaly project simple queue implemented by msg function. This a specific function msg_receive which is used to wait for a message to come to the queue. Once in a while, this wait crashes with a return error code 43 without an error text.

I can cause this error number 43. If I run two processes, you can see on github. This is expected, but if i run by supervisor i get same error.

I created simple script on github, which is executed by supervisor and process waiting for receive message, it sometomes happen the function return error code 43. Is there anything what clean resources?

I have no idea what causes this, but what did I try?

I checked that the supervisor runs only one php process and the PID is still the same. I tested it on arm raspbian 32 bit (php 7.3.19) and ubuntu 64 bit (php 7.4.9), both are same.

Thank you for help.

I hope the behavior is well described.

asked Sep 3, 2020 at 11:20
2
  • You don't forget to use method ftok() for first parameter msg_get_queue($key)! Commented Aug 6, 2023 at 13:39
  • Let's use this library: github.com/h4kuna/queue Commented Aug 11, 2023 at 13:16

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.