From 5de62fd8518cb268e2655a20b38a0efdeb2882de Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 17 Jun 2016 18:09:12 -0400 Subject: [PATCH] Revert "Assert that a valid clean-up pipe exists on ht_cleanup_push" MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This reverts commit fc41443f7ee5fa95a942d0aedd61c75d622697b5. Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.34.1