X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fmain.c;h=6e5b612f21ae0cc72619a4b2c8ebbeb1d9367467;hb=482b1157950e665c952ca8393e491fc9fc699157;hp=325be9cf124df7d495fd3a27863195bebb9c55c4;hpb=2a635488acf0c56ffb9b66c57f6bf97a95c53be6;p=lttng-tools.git 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 != '/') {