#if HAVE_POLL
if (fd >= FD_MAX) {
printf("add_fd(%d, %x): failed\n", fd, events);
#if HAVE_POLL
if (fd >= FD_MAX) {
printf("add_fd(%d, %x): failed\n", fd, events);
i = vsnprintf(buf, 256, fmt, args);
va_end(args);
i = vsnprintf(buf, 256, fmt, args);
va_end(args);
err = send(c->sock, buf, i, 0);
if (err == -1 && errno == EPIPE) {
destroy_conn(c);
err = send(c->sock, buf, i, 0);
if (err == -1 && errno == EPIPE) {
destroy_conn(c);
if (glob("README*", 0, NULL, &pglob) != 0) return;
for (i = 0; i < pglob.gl_pathc; i++) {
if (glob("README*", 0, NULL, &pglob) != 0) return;
for (i = 0; i < pglob.gl_pathc; i++) {
snprintf(str, 256, "250-Please read the file %s\r\n"
"250-\tIt was last modified %s - %ld days ago\r\n",
snprintf(str, 256, "250-Please read the file %s\r\n"
"250-\tIt was last modified %s - %ld days ago\r\n",
(now - buf.st_mtime) / 86400);
send(c->sock, str, strlen(str), 0);
}
(now - buf.st_mtime) / 86400);
send(c->sock, str, strlen(str), 0);
}