projects
/
deliverable
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Assert that a valid clean-up pipe exists on ht_cleanup_push
[deliverable/lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
utils.c
diff --git
a/src/bin/lttng-sessiond/utils.c
b/src/bin/lttng-sessiond/utils.c
index f77a21ddb153a5ebdd88815af3e9850e37736151..d676198208fe638c2efb8f33b62f023ee39958ee 100644
(file)
--- a/
src/bin/lttng-sessiond/utils.c
+++ b/
src/bin/lttng-sessiond/utils.c
@@
-55,8
+55,7
@@
void ht_cleanup_push(struct lttng_ht *ht)
if (!ht) {
return;
}
- if (fd < 0)
- return;
+ assert(fd >= 0);
ret = lttng_write(fd, &ht, sizeof(ht));
if (ret < sizeof(ht)) {
PERROR("write ht cleanup pipe %d", fd);
This page took
0.023608 seconds
and
5
git commands to generate.