asprintf(&send_msg, "get_subbuffer %s", buf->name);
result = ustcomm_send_request(&buf->conn, send_msg, &received_msg);
- if(result == -1 && errno == EPIPE || result == 0) {
+ if((result == -1 && errno == EPIPE) || result == 0) {
DBG("app died while being traced");
retval = GET_SUBBUF_DIED;
goto end;
}
/* put the subbuffer */
+ /* FIXME: we actually should unput the buffer before consuming... */
result = put_subbuffer(buf);
if(result == -1) {
ERR("unknown error putting subbuffer (channel=%s)", buf->name);