X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fmain.c;h=6e5b612f21ae0cc72619a4b2c8ebbeb1d9367467;hp=325be9cf124df7d495fd3a27863195bebb9c55c4;hb=c04077180977834684b367f97afa22a79fcbd471;hpb=c51b2177a083e94884c11cb3c2a6bbfe9dc463f7 diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 325be9cf1..6e5b612f2 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -3800,6 +3800,12 @@ int main(int argc, char **argv) goto exit_options; } + ret = fclose(stdin); + if (ret) { + PERROR("Failed to close stdin"); + goto exit_options; + } + /* Try to create directory if -o, --output is specified. */ if (opt_output_path) { if (*opt_output_path != '/') {