continue;
}
if(result == 0) {
+ int res;
DBG("PRODUCER END");
- close(bc->fd_producer);
+ res = close(bc->fd_producer);
+ if(res == -1) {
+ PERROR("close");
+ }
list_del(&bc->list);
if(trace == NULL) {
int result;
- WARN("Cannot find trace. It was likely destroyed by the user.");
+ DBG("Cannot find trace. It was likely destroyed by the user.");
result = ustcomm_send_reply(&ustcomm_app.server, "NOTFOUND", src);
if(result) {
ERR("ustcomm_send_reply failed");
trace = _ltt_trace_find(trace_name);
if(trace == NULL) {
- WARN("Cannot find trace. It was likely destroyed by the user.");
+ DBG("Cannot find trace. It was likely destroyed by the user.");
result = ustcomm_send_reply(&ustcomm_app.server, "NOTFOUND", src);
if(result) {
ERR("ustcomm_send_reply failed");
destroy_traces();
- ustcomm_fini_app(&ustcomm_app);
+ ustcomm_fini_app(&ustcomm_app, 0);
}
void ust_potential_exec(void)
list_del(&bc->list);
}
- ustcomm_free_app(&ustcomm_app);
+ /* free app, keeping socket file */
+ ustcomm_fini_app(&ustcomm_app, 1);
buffers_to_export = 0;
have_listener = 0;