/*
* Gamin-specific extension for FAM to not propagate Exists events on
* directory monitoring startup. This speeds up watching large
* directories but can introduce a mismatch between the FAM view of the
* directory and the program own view.
*
* Has no effect if FAMNoExists is not available.
*
* Raises a Fam::Error exception if an error is encountered.
*
* Examples:
* fam.no_exists
*
*/
static VALUE fam_conn_no_exists(VALUE self)
{
FAMConnection *conn;
int err;
Data_Get_Struct(self, FAMConnection, conn);
err = FAMNoExists(conn);
if (err == -1) {
rb_raise(eError, "Couldn't turn off exists events: %s",
fam_error());
}
return self;
}