virtual bool DoRemove(wxSharedPtr<wxFSWatchEntryKq> watch) { wxCHECK_MSG( IsOk(), false, "Kqueue not initialized or invalid kqueue descriptor" ); // TODO more error conditions according to man // XXX closing file descriptor removes the watch. The logic resides in // the watch which is not nice, but effective and simple bool ret = watch->Close(); if (ret == -1) { wxLogSysError(_("Unable to remove kqueue watch")); return false; } return true; }