I create a resource manager and in another thread in the same
process try to connect to my own device, but it always fails with
NOTTY. I can open device from other processes.
In general, it"s not a good idea to create a design
where one thread in a resmgr does an open on the resmgr device. It
creates potential for deadlock. If you are absolutely sure that the
thread doing the open is never involved in servicing device requests, it
can be done by specifying the _RESMGR_FLAG_SELF flag to resgmr_attach.
For more info. look up resmgr_attach in the library reference.
NOTE:
This entry has been validated against the SDP version listed above. Use
caution when considering this advice for any other SDP version. For
supported releases, please reach out to QNX Technical Support if you have any questions/concerns.