Ticket #1420: 0ad-r10803-gamin.2.patch
File 0ad-r10803-gamin.2.patch, 893 bytes (added by , 12 years ago) |
---|
-
0ad-r10803-alpha/source/lib/sysdep/os/linux/dir_watch_fam.cpp
old new static void* fam_event_loop(void*) 156 156 157 157 Status dir_watch_Add(const OsPath& path, PDirWatch& dirWatch) 158 158 { 159 char resolved[PATH_MAX + 1]; 160 159 161 // init already failed; don't try again or complain 160 162 if(initialized == -1) 161 163 return ERR::FAIL; // NOWARN … … Status dir_watch_Add(const OsPath& path, 188 190 // not worthwhile 189 191 190 192 FAMRequest req; 191 if(FAMMonitorDirectory(&fc, OsString(path).c_str(), &req, tmpDirWatch.get()) < 0) 193 194 FAMNoExists(&fc); 195 196 if(FAMMonitorDirectory(&fc, realpath(OsString(path).c_str(), resolved), &req, tmpDirWatch.get()) < 0) 192 197 { 193 198 debug_warn(L"res_watch_dir failed!"); 194 199 WARN_RETURN(ERR::FAIL); // no way of getting error code?