relayd: close stdin on launch
[lttng-tools.git] / src / bin / lttng-relayd / main.c
index 325be9cf124df7d495fd3a27863195bebb9c55c4..6e5b612f21ae0cc72619a4b2c8ebbeb1d9367467 100644 (file)
@@ -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 != '/') {
This page took 0.023402 seconds and 4 git commands to generate.