summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2008-05-06 23:34:16 +0000
committerroot <root>2008-05-06 23:34:16 +0000
commit4869f7e4e023a802c535a036011083ff425d7fec (patch)
tree4188d66ab38af5770f7b826e1ceeeb0384d7e123 /ev.c
parent55f891552808df13054aa3be5339ec8a6137f4ec (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index 4065b99..058d7ee 100644
--- a/ev.c
+++ b/ev.c
@@ -522,7 +522,7 @@ ev_sleep (ev_tstamp delay)
/*****************************************************************************/
-#define MALLOC_ROUND 4096 // prefer to allocate in chunks of this size, must be 2**n and >> 4 longs
+#define MALLOC_ROUND 4096 /* prefer to allocate in chunks of this size, must be 2**n and >> 4 longs */
int inline_size
array_nextsize (int elem, int cur, int cnt)
@@ -2118,6 +2118,8 @@ infy_add (EV_P_ ev_stat *w)
ev_timer_start (EV_A_ &w->timer); /* this is not race-free, so we still need to recheck periodically */
/* monitor some parent directory for speedup hints */
+ /* note that exceeding the hardcoded limit is not a correctness issue, */
+ /* but an efficiency issue only */
if ((errno == ENOENT || errno == EACCES) && strlen (w->path) < 4096)
{
char path [4096];