I have 2 simple resource managers written as dynamic loaded library
which declare 2 names each. Not depending on which library is loaded
first, the first call to dispatch_handler() returns -1 with errno=0!
I modified this morning an other application I wrote few months ago with
a thread pool. After rebuilding it I tried to execute it and surprised,
cpu load was 100% ?!?
After some investigations, I discovered that dispatch_handler() allways
return -1 with errno=0!!
BUT, it dispatch correctly all io_msg or io_read I send to it and
answers are correct.
I really don’t understand what is wrong. I suppose there is something, a
structure or I don’t know what, that I commonly set unproperly. What is
strange is that application was running correctly few months ago. Is
there something more critical in 6.1?
How dispatch_handler can return -1 with errno = 0?