… | |
… | |
2432 | if (w->wd < 0) |
2432 | if (w->wd < 0) |
2433 | { |
2433 | { |
2434 | ev_timer_start (EV_A_ &w->timer); /* this is not race-free, so we still need to recheck periodically */ |
2434 | ev_timer_start (EV_A_ &w->timer); /* this is not race-free, so we still need to recheck periodically */ |
2435 | |
2435 | |
2436 | /* monitor some parent directory for speedup hints */ |
2436 | /* monitor some parent directory for speedup hints */ |
2437 | /* note that exceeding the hardcoded limit is not a correctness issue, */ |
2437 | /* note that exceeding the hardcoded path limit is not a correctness issue, */ |
2438 | /* but an efficiency issue only */ |
2438 | /* but an efficiency issue only */ |
2439 | if ((errno == ENOENT || errno == EACCES) && strlen (w->path) < 4096) |
2439 | if ((errno == ENOENT || errno == EACCES) && strlen (w->path) < 4096) |
2440 | { |
2440 | { |
2441 | char path [4096]; |
2441 | char path [4096]; |
2442 | strcpy (path, w->path); |
2442 | strcpy (path, w->path); |