Hi All,

Kernel version : 4.4.19-linux4sam_5.4
uclibc version : 1.0.12
uclibc threading support : NPTL
Processor Arch: ARM

We create a NONBLOCKING message queue.

The expected behavior is when the message queue is full, calling mq_send would 
return -1 and set errno to EAGAIN(11). However we are seeing some inconsistent 
behaviors of mq_send.

When calling mq_send in a single threaded environment, the expected behavior is 
observed.

If the program starts a second thread, which is doing completely different 
task, calling mq_send when the queue is full would return -11 instead of -1. 
Also, the errno is set to an incorrect value. Values we have seen are 0, 2, 
which are completely different from the expected EAGAIN(11).

Frank

-- 
IMPORTANTPrivileged - Private & Confidential This email and files transmitted 
with it are intended solely for the use of the addressee (s) and may contain 
information which is confidential or privileged. If you are not the intended 
recipient, be aware that any disclosure, copying, distribution or use of this 
email or any attachment is prohibited. If you receive this email and you are 
not the addressee, or you have received this email in error, please disregard 
the contents of the email, delete the email and notify the author immediately. 
It is your responsibility to check any email attachments for email viruses 
before opening or sending them on. 

 

_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to