static int dis_reply_write( int sfds, /* I */ struct batch_reply *preply) /* I */ { int rc = PBSE_NONE; char log_buf[LOCAL_LOG_BUF_SIZE]; struct tcp_chan *chan = NULL; /* setup for DIS over tcp */ if ((chan = DIS_tcp_setup(sfds)) == NULL) { } /* send message to remote client */ else if ((rc = encode_DIS_reply(chan, preply)) || (rc = DIS_tcp_wflush(chan))) { sprintf(log_buf, "DIS reply failure, %d", rc); log_event(PBSEVENT_SYSTEM, PBS_EVENTCLASS_REQUEST, __func__, log_buf); /* don't need to get the lock here because we already have it from process request */ close_conn(sfds, FALSE); } if (chan != NULL) DIS_tcp_cleanup(chan); return(rc); } /* END dis_reply_write() */
static int dis_reply_write( int sfds, /* I */ struct batch_reply *preply) /* I */ { int rc; /* setup for DIS over tcp */ DIS_tcp_setup(sfds); /* send message to remote client */ if ((rc = encode_DIS_reply(sfds, preply)) || (rc = DIS_tcp_wflush(sfds))) { sprintf(log_buffer, "DIS reply failure, %d", rc); LOG_EVENT( PBSEVENT_SYSTEM, PBS_EVENTCLASS_REQUEST, "dis_reply_write", log_buffer); close_conn(sfds); } return(rc); } /* END dis_reply_write() */