Revert "Assert that a valid clean-up pipe exists on ht_cleanup_push"
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 17 Jun 2016 22:09:12 +0000 (18:09 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 17 Jun 2016 22:09:54 +0000 (18:09 -0400)
This reverts commit fc41443f7ee5fa95a942d0aedd61c75d622697b5.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/utils.c

index d676198208fe638c2efb8f33b62f023ee39958ee..f77a21ddb153a5ebdd88815af3e9850e37736151 100644 (file)
@@ -55,7 +55,8 @@ void ht_cleanup_push(struct lttng_ht *ht)
        if (!ht) {
                return;
        }
-       assert(fd >= 0);
+       if (fd < 0)
+               return;
        ret = lttng_write(fd, &ht, sizeof(ht));
        if (ret < sizeof(ht)) {
                PERROR("write ht cleanup pipe %d", fd);
This page took 0.024924 seconds and 4 git commands to generate.