X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Flttngtop.c;h=1da87ea7fba16dfb0de5106d00d12b95bbe3ad34;hp=f2df936769e7f8e15190483e1673e875c1173afa;hb=aa15ac1c699ea5f76f6c26fb14ab22f725ecc293;hpb=b332d28fca0f56381a6f5458f5898ef4ffa0242f diff --git a/src/lttngtop.c b/src/lttngtop.c index f2df936..1da87ea 100644 --- a/src/lttngtop.c +++ b/src/lttngtop.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Julien Desfossez + * Copyright (C) 2011-2012 Julien Desfossez * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 2 as @@ -513,11 +513,9 @@ int bt_context_add_traces_recursive(struct bt_context *ctx, const char *path, } metafd = openat(dirfd, "metadata", O_RDONLY); if (metafd < 0) { - ret = close(dirfd); - if (ret < 0) { - perror("close"); - goto error; - } + close(dirfd); + ret = -1; + continue; } else { int trace_id;