add error handling for close() call
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 9 Mar 2010 04:48:20 +0000 (23:48 -0500)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 9 Mar 2010 04:48:20 +0000 (23:48 -0500)
libust/tracectl.c

index 3f2ee38cdb7357f0bc5b94dc093536ca87acb819..e40a905d5f6bb5b6fa6e4909005e65acb5c55d00 100644 (file)
@@ -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);
 
This page took 0.026036 seconds and 4 git commands to generate.