correctly close bc fds on fork
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Fri, 25 Sep 2009 19:18:16 +0000 (15:18 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Fri, 25 Sep 2009 19:18:16 +0000 (15:18 -0400)
libust/tracectl.c

index 97c515cfa68dcbbf6227c263ebc2dd2714cd256f..83109a14c222d9f8719dc3710726f1a35a9544b6 100644 (file)
@@ -1155,6 +1155,8 @@ void ust_fork(void)
 
        /* Delete all blocked consumers */
        list_for_each_entry(bc, &blocked_consumers, list) {
+               close(bc->fd_producer);
+               close(bc->fd_consumer);
                free(deletable_bc);
                deletable_bc = bc;
                list_del(&bc->list);
This page took 0.023944 seconds and 4 git commands to generate.