ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.269 by root, Wed Oct 29 06:32:48 2008 UTC vs.
Revision 1.272 by root, Mon Nov 3 12:17:40 2008 UTC

1659{ 1659{
1660#if EV_MULTIPLICITY 1660#if EV_MULTIPLICITY
1661 struct ev_loop *loop = ev_default_loop_ptr; 1661 struct ev_loop *loop = ev_default_loop_ptr;
1662#endif 1662#endif
1663 1663
1664 ev_loop_fork (EV_A); 1664 postfork = 1; /* must be in line with ev_loop_fork */
1665} 1665}
1666 1666
1667/*****************************************************************************/ 1667/*****************************************************************************/
1668 1668
1669void 1669void
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines