Exit from the loop if it fails to write a char to the pipe
Change-Id: I7e984f9dd87d28200cf241e049a711ff0291b979
ErrPrint("Interrupted[%d] Again[%d]\n", fd, -ret);
break;
default:
- ErrPrint("Failed to write: %s\n", strerror(-ret));
+ ErrPrint("Failed to write: %s (%d)\n", strerror(-ret), -ret);
return ret;
}
}
int readsize;
char event_ch;
int fd;
- int w_ret;
DbgPrint("Thread is created for %d (server: %d)\n", tcb->handle, tcb->server_handle);
/*!
*/
if (chunk_append(tcb, chunk) < 0) {
destroy_chunk(chunk);
+ break;
}
}