Changeset 402 for trunk/src/sh_fInotify.c
- Timestamp:
- May 1, 2012, 5:50:32 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_fInotify.c
r382 r402 363 363 if ((errnum == ENOENT) || (errnum == EEXIST)) 364 364 { 365 char * epath = sh_util_safe_name (filename); 366 SH_MUTEX_LOCK(mutex_thread_nolog); 367 sh_error_handle( (class == SH_LEVEL_ALLIGNORE) ? 368 ShDFLevel[class] : 369 ShDFLevel[SH_ERR_T_FILE], 370 FIL__, __LINE__, errnum, MSG_E_SUBGPATH, 371 errbuf, _("sh_fInotify_init_internal"), epath); 372 SH_MUTEX_UNLOCK(mutex_thread_nolog); 373 SH_FREE(epath); 365 /* (1) Did it exist at init ? 366 */ 367 if (sh_hash_have_it (filename) >= 0) 368 { 369 /* (2) Do we want to report on it ? 370 */ 371 if (S_FALSE == sh_ignore_chk_del(filename)) 372 { 373 char * epath = sh_util_safe_name (filename); 374 375 SH_MUTEX_LOCK(mutex_thread_nolog); 376 sh_error_handle( (class == SH_LEVEL_ALLIGNORE) ? 377 ShDFLevel[class] : 378 ShDFLevel[SH_ERR_T_FILE], 379 FIL__, __LINE__, errnum, MSG_E_SUBGPATH, 380 errbuf, _("sh_fInotify_init_internal"), epath); 381 SH_MUTEX_UNLOCK(mutex_thread_nolog); 382 SH_FREE(epath); 383 } 384 } 374 385 } 375 386 else … … 457 468 458 469 SH_MUTEX_LOCK(mutex_thread_nolog); 459 sh_error_handle( (-1), FIL__, __LINE__, event->wd, MSG_E_SUBGEN,470 sh_error_handle(SH_ERR_ALL, FIL__, __LINE__, event->wd, MSG_E_SUBGEN, 460 471 _("Watch removed: file path unknown"), 461 472 _("sh_fInotify_process"));
Note:
See TracChangeset
for help on using the changeset viewer.