free a virtual circuit between two processes
#include <sys/vc.h> int qnx_vc_detach( pid_t vid );
The qnx_vc_detach() function frees a virtual circuit vid previously attached using qnx_vc_attach() or qnx_vc_name_attach(). The virtual process entry and message buffer at both ends are released.
If you requested shared vids, you must detach as many times as you attached to really get rid of the vid. Otherwise, a link counter is simply decremented at both the local and remote nodes, and the virtual process entry and memory buffer at both ends are still marked as in use. |
When a process dies, all of its virtual circuits are automatically detached.
If any of the following conditions occurs, the qnx_vc_detach() function returns -1, and sets errno to the corresponding value:
See qnx_vc_attach().
QNX
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | Yes, but modifies errno |
Thread | Yes |
errno, qnx_vc_attach(), qnx_vc_name_attach()