summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
aeb1626)
Some error-handling code paths may call ht_cleanup_push() with NULL hash
tables which will crash the clean-up thread.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
ssize_t ret;
int fd = ht_cleanup_pipe[1];
ssize_t ret;
int fd = ht_cleanup_pipe[1];
+ if (!ht) {
+ return;
+ }
if (fd < 0)
return;
ret = lttng_write(fd, &ht, sizeof(ht));
if (fd < 0)
return;
ret = lttng_write(fd, &ht, sizeof(ht));