projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the container_of() macro to macro.h
[lttng-tools.git]
/
src
/
common
/
utils.c
diff --git
a/src/common/utils.c
b/src/common/utils.c
index 901ddb036771d77ff7ab1c2f723c98db7f895bbb..16d2f817ad8a1b21d99228a67e5bba25e0d1f3fa 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-854,6
+854,7
@@
int utils_rotate_stream_file(char *path_name, char *file_name, uint64_t size,
PERROR("Closing tracefile");
goto error;
}
PERROR("Closing tracefile");
goto error;
}
+ *stream_fd = -1;
if (count > 0) {
/*
if (count > 0) {
/*
@@
-1374,11
+1375,11
@@
int utils_show_man_page(int section, const char *page_name)
/*
* Execute man pager.
*
/*
* Execute man pager.
*
- * We provide -
-manpath
to man here because LTTng-tools can
+ * We provide -
M
to man here because LTTng-tools can
* be installed outside /usr, in which case its man pages are
* not located in the default /usr/share/man directory.
*/
* be installed outside /usr, in which case its man pages are
* not located in the default /usr/share/man directory.
*/
- ret = execlp(man_bin_path, "man", "-
-manpath
", MANPATH,
+ ret = execlp(man_bin_path, "man", "-
M
", MANPATH,
section_string, page_name, NULL);
return ret;
}
section_string, page_name, NULL);
return ret;
}
This page took
0.023331 seconds
and
4
git commands to generate.