msg_disconnect - disconnect a port
Synopsis
Description
#include <sys/msg.h>
int msg_disconnect(port_t port);
msg_disconnect() causes a port to close. When applied to a servers port, each client will receive an I/O error on their next attempt to use the port. If the client already has an I/O outstanding, it will be completed in error immediately.When used by a client, a M_DISCONNECT message is queued to the server. The server may clean up any data structures, but does not need to reply. The client has already been disassociated from the port.
MSG_DISCONNECT (2) |