X-Git-Url: https://git.lttng.org/?p=ust.git;a=blobdiff_plain;f=libust%2Ftracectl.c;h=e0b9370963a482a206be9b358d4705ecae727e9c;hp=874a1b4d7e7bede3a6f1910094edebfdf3f91127;hb=2c1ccefa04f76f4ed7ed2c6bd02b1144e3ba1582;hpb=cd03ff7fc37d27519d174974c8867d39da44feae diff --git a/libust/tracectl.c b/libust/tracectl.c index 874a1b4..e0b9370 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -1470,8 +1470,10 @@ static void ust_fork(void) /* Delete all blocked consumers */ list_for_each_entry(bc, &blocked_consumers, list) { - close(bc->fd_producer); - close(bc->fd_consumer); + result = close(bc->fd_producer); + if(result == -1) { + PERROR("close"); + } free(deletable_bc); deletable_bc = bc; list_del(&bc->list);