X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libust%2Ftracectl.c;h=d6726d4fc53290ffcd7d7b05cc6ed062d8d32e0a;hb=0b2026f29acabd8676db5272f9149769ecb18d69;hp=97c515cfa68dcbbf6227c263ebc2dd2714cd256f;hpb=c396a8419a176d0eda4a96a639f1cafb178e6dc7;p=lttng-ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index 97c515cf..d6726d4f 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -804,12 +804,10 @@ void create_listener(void) void sighandler(int sig) { - static char have_listener = 0; DBG("sighandler"); if(!have_listener) { create_listener(); - have_listener = 1; } } @@ -1155,6 +1153,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);