[lttng-dev] [PATCH lttng-tools 1/2] Revert stubbing of unix socket functions

2018-11-29 Thread Michael Jeanson
Instead of stubing useful unix socket functions to work around Linux-only credential passing, ifdef the relevant parts like it was already done for other functions. Signed-off-by: Michael Jeanson --- configure.ac | 3 -- src/common/Makefile.am | 8 +--- src/common/unix-stub.c | 86 --

[lttng-dev] [PATCH lttng-tools 2/2] Revert stubbing of runas functions

2018-11-29 Thread Michael Jeanson
All the runas functions were stubbed on builds were the sessiond isn't built which is the case of all platforms except Linux. This was done because of 2 new commands that require elf.h which is not present on MacOSX. However the other commands can be used by the relayd. Revert this and and only st

[lttng-dev] [PATCH lttng-tools] Fix: warning 'fd' may be used uninitialized

2018-11-29 Thread Michael Jeanson
Initialize fd to invalid '-1' and remove unnecessary file_opened. Signed-off-by: Michael Jeanson --- src/bin/lttng-sessiond/save.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/bin/lttng-sessiond/save.c b/src/bin/lttng-sessiond/save.c index 8daf870c..6ce992b2 10