From: Jérémie Galarneau Date: Fri, 17 Jun 2016 22:09:12 +0000 (-0400) Subject: Revert "Assert that a valid clean-up pipe exists on ht_cleanup_push" X-Git-Tag: v2.9.0-rc1~118 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=5de62fd8518cb268e2655a20b38a0efdeb2882de Revert "Assert that a valid clean-up pipe exists on ht_cleanup_push" This reverts commit fc41443f7ee5fa95a942d0aedd61c75d622697b5. Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/utils.c b/src/bin/lttng-sessiond/utils.c index d67619820..f77a21ddb 100644 --- a/src/bin/lttng-sessiond/utils.c +++ b/src/bin/lttng-sessiond/utils.c @@ -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);