From: Pierre-Marc Fournier Date: Tue, 9 Mar 2010 04:48:20 +0000 (-0500) Subject: add error handling for close() call X-Git-Tag: v0.4~38 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=78cc99db4b302f5cbf2f9fb5fdf49d886ef5926f;p=ust.git add error handling for close() call --- diff --git a/libust/tracectl.c b/libust/tracectl.c index 3f2ee38..e40a905 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -232,9 +232,13 @@ void process_blocked_consumers(void) 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);