projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: test ust snapshot with discard buffers
[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 f5f1cff638810207d17086f88a9af6b89fea768d..d676198208fe638c2efb8f33b62f023ee39958ee 100644
(file)
--- a/
src/bin/lttng-sessiond/utils.c
+++ b/
src/bin/lttng-sessiond/utils.c
@@
-16,7
+16,6
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
#define _LGPL_SOURCE
#include <stdlib.h>
#include <unistd.h>
#define _LGPL_SOURCE
#include <stdlib.h>
#include <unistd.h>
@@
-56,8
+55,7
@@
void ht_cleanup_push(struct lttng_ht *ht)
if (!ht) {
return;
}
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);
ret = lttng_write(fd, &ht, sizeof(ht));
if (ret < sizeof(ht)) {
PERROR("write ht cleanup pipe %d", fd);
This page took
0.023199 seconds
and
4
git commands to generate.