while (rbuffer[0] >= 100) {
// Information packet; discard.
- fillBufferTo(&rbuffer, fd, 1);
+ fillBufferTo(&rbuffer, fd, 2);
int pktlen = (unsigned char) rbuffer[1];
rbuffer.consume(1); // Consume one byte so we'll read one byte of the next packet
dup2(consfd, STDOUT_FILENO);
}
- cout << "Sending TERM/KILL to all processes..." << endl; // DAV
+ cout << "Sending TERM/KILL to all processes..." << endl;
// Send TERM/KILL to all (remaining) processes
kill(-1, SIGTERM);