Detach an attached HA file descriptor, then close it
#include <ha/unistd.h> int ha_close(int fd);
libha
The ha_close() convenience function detaches a connection that was previously attached using ha_attach(), and then closes the connection.
The fd is the file descriptor originally obtained from ha_open().
The ha_close() function returns errors as returned by either the underlying close() call or the ha_detach() call.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
ha_attach(), ha_ConnectDetach(), ha_detach(), ha_open()
In the Library Reference: close()