All pastes #776510 Raw Edit

Someone

public text v1 · immutable
·published 2007-11-16 03:05 UTC
rendered paste body
int connection::writeout(const char*line){
                //int ret=write(this->fd,line,strlen(line));
                if (this->fd<0)return -2;
                int ret=send(this->fd,line,strlen(line),MSG_DONTWAIT);
                if(piped){printf("PIPEPIPEPIEPIEPIE\n");}
                if(ret==-1){
                        int err=errno;
                        printf("ERR %d %s %s\n",err,strerror(err),this->name.c_str());
                        if(err==11){
                                close(this->fd);
                                this->fd=-1;
                        }
                }
                return ret;
}