aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2020-03-28 07:02:13 +0000
committerepoch <epoch@hack.thebackupbox.net>2020-03-28 07:02:13 +0000
commitece7b9bdbcb6d8fda70e0d5509fbe4caa62ce6d3 (patch)
tree2528734187226b9c62cbf305ebe66dc2676a534b
parent794e511e8e3e1deb7121eac90e36247ebeed329a (diff)
downloadlibidc-ece7b9bdbcb6d8fda70e0d5509fbe4caa62ce6d3.tar.gz
libidc-ece7b9bdbcb6d8fda70e0d5509fbe4caa62ce6d3.zip
commented out some printfs
-rw-r--r--libidc.c6
1 files 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;