new_client = para_malloc(sizeof(struct stat_client));
new_client->fd = fd;
new_client->item_mask = mask;
- add_close_on_fork_list(fd);
list_add(&new_client->node, &client_list);
dump_stat_client_list();
num_clients++;
}
/* write error or fd not ready for writing */
close(fd);
- del_close_on_fork_list(fd);
num_clients--;
PARA_INFO_LOG("deleting client on fd %d\n", fd);
list_del(&sc->node);
char *start = buf, *end;
int i, num_lines = 0;
- PARA_INFO_LOG("buf: %s", buf);
+// PARA_INFO_LOG("buf: %s", buf);
while (start < buf + n) {
char *next_null;
char *next_cr;
num_lines++;
if (line_handler) {
*end = '\0';
- PARA_INFO_LOG("calling line handler: %s\n", start);
+// PARA_INFO_LOG("calling line handler: %s\n", start);
line_handler(start);
start = ++end;
} else