Backport: relayd: close stdin
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 19 Jun 2018 02:45:27 +0000 (22:45 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 21 Sep 2018 04:00:52 +0000 (00:00 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c

index 72ecef2f2e49901c2392d0f658b50832b2e420d6..e22d58cf443d344fff314329170f32828ab01f01 100644 (file)
@@ -3276,6 +3276,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.027872 seconds and 5 git commands to generate.