From ece7b9bdbcb6d8fda70e0d5509fbe4caa62ce6d3 Mon Sep 17 00:00:00 2001 From: epoch Date: Sat, 28 Mar 2020 07:02:13 +0000 Subject: commented out some printfs --- libidc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libidc.c b/libidc.c index 01013a7..0c25e07 100644 --- a/libidc.c +++ b/libidc.c @@ -188,7 +188,7 @@ int select_on_everything() { else perror("wtf? select"); //continue; } - fprintf(stderr,"after select(). ret: %d\n",j); + //fprintf(stderr,"after select(). ret: %d\n",j); // for(i=0;fds[i] != -1;i++) if(extra_handler) extra_handler(fds[i]); if(j == 0) {//we MIGHT have some EOFs that need to be tried... if(eofcount == 0) {//if eofcount is zero we don't need to keep going @@ -203,7 +203,7 @@ int select_on_everything() { idc.fds[i].line_handler(&idc.fds[i],""); continue;//we don't need to read the line. } - fprintf(stderr,"attempting to read from fd: %d eofstat: %d\n",idc.fds[i].fd,idc.fds[i].eof); + //fprintf(stderr,"attempting to read from fd: %d eofstat: %d\n",idc.fds[i].fd,idc.fds[i].eof); if((n=read(idc.fds[i].fd,idc.fds[i].buffer,CHUNK)) < 0) { snprintf(tmp,sizeof(tmp)-1,"fd %d: read perror:",idc.fds[i].fd);//hopefully this doesn't error and throw off error messages. perror(tmp); @@ -211,7 +211,7 @@ int select_on_everything() { } //fprintf(stderr,"read %d bytes from fd: %d\n",n,idc.fds[i].fd); if(n == 0) { - fprintf(stderr,"reached EOF on fd: %d\n",idc.fds[i].fd); + //fprintf(stderr,"reached EOF on fd: %d\n",idc.fds[i].fd); if(idc.fds[i].keep_open) { idc.fds[i].eof=1;//this flag is only used if we want to wait for eof to go away. continue; -- cgit v1.2.3