relayd: close stdin
[deliverable/lttng-tools.git] / src / bin / lttng-relayd / main.c
index 16b49bcaa9a398e4fe00855ca7f7bb0439c97881..c568c2e3fb1d50508484b39a417c294488806873 100644 (file)
@@ -3968,6 +3968,11 @@ 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.027366 seconds and 5 git commands to generate.