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);
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;