| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) | 
Remove a condition from an entity
#include <ha/ham.h>
int ham_condition_remove( ham_condition_t *chdl, 
                         unsigned flags );
libham
The ham_condition_remove() function removes a condition from an entity.
The chdl argument is a handle to a condition that was previously obtained by a call to ham_condition() or to ham_condition_handle().
There are no flags defined at this time.
|  | The ham_connect() function must be called before the first call to ham_condition_remove() in a process. If a process calls ham_connect() and then calls fork(), the child process needs to call ham_connect() again before it can successfully call ham_condition_remove() to remove conditions. | 
The connection to the HAM is invalid. This happens when the process that opened the connection (using ham_connect()) and the process that's calling ham_condition_remove() aren't the same.
In addition to the above errors, the HAM returns any error it encounters while servicing the request.
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | Yes | 
ham_condition(), ham_condition_handle(), ham_connect()
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) |