#define array_needsize(base,cur,cnt,init) \
if ((cnt) > cur) \
{ \
#define array_needsize(base,cur,cnt,init) \
if ((cnt) > cur) \
{ \
base = realloc (base, sizeof (*base) * (newcnt)); \
init (base + cur, newcnt - cur); \
cur = newcnt; \
base = realloc (base, sizeof (*base) * (newcnt)); \
init (base + cur, newcnt - cur); \
cur = newcnt; \
- evsignal_init (&childev, childcb, SIGCHLD);
- evsignal_start (&childev);
+ evsignal_init (&childev, childcb, SIGCHLD);
+ evsignal_start (&childev);
+ }
++fdchangecnt;
array_needsize (fdchanges, fdchangemax, fdchangecnt, );
fdchanges [fdchangecnt - 1] = fd;
++fdchangecnt;
array_needsize (fdchanges, fdchangemax, fdchangecnt, );
fdchanges [fdchangecnt - 1] = fd;