ham_disconnect()

QNX SDP8.0High Availability Framework Developer's GuideDeveloper

Disconnect from the HAM

Synopsis:

#include <ha/ham.h>

int ham_disconnect( unsigned flags );

Arguments:

flags
Currently not used.

Library:

libham

Description:

The ham_disconnect() function closes a previously open connection to a HAM.

Because the library maintains a reference count, the actual connection to the HAM is released only when the number of calls made to ham_disconnect() matches the number of calls previously made to ham_connect().

There are no flags defined at this time.

Returns:

0
Success.
-1
An error occurred (errno is set).

Errors:

EINVAL
There's no valid connection to the HAM to disconnect.

Classification:

QNX OS

Safety:
Cancellation pointNo
Signal handlerNo
ThreadYes
Page updated: