if(sent2socket>0)break;// image/xmldata was already sent to socket, ignore
if(sent2socket>0)break;// image/xmldata was already sent to socket, ignore
if(lseek(fset->circbuf_fd,LSEEK_CIRC_READY,SEEK_END)<0){// here passes OK, some not ready error is later, in sendimage (make it return different numbers)
if(lseek(fset->circbuf_fd,LSEEK_CIRC_READY,SEEK_END)<0){// here passes OK, some not ready error is later, in sendimage (make it return different numbers)