From: Pierre-Marc Fournier Date: Fri, 25 Sep 2009 19:18:16 +0000 (-0400) Subject: correctly close bc fds on fork X-Git-Tag: v0.1~125 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d9ce395d9a7d0d6628d6f495e4bacb912abfcba9;p=ust.git correctly close bc fds on fork --- diff --git a/libust/tracectl.c b/libust/tracectl.c index 97c515c..83109a1 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -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);