relayd: close stdin
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 19 Jun 2018 02:45:27 +0000 (22:45 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 3 Jul 2018 14:40:58 +0000 (10:40 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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.028429 seconds and 5 git commands to generate.