From: Jérémie Galarneau Date: Tue, 19 Jun 2018 02:45:27 +0000 (-0400) Subject: Backport: relayd: close stdin X-Git-Url: http://git.efficios.com/?p=deliverable%2Flttng-tools.git;a=commitdiff_plain;h=75d29f1323a5ccc6eef3273a58db321d24277f65 Backport: relayd: close stdin Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 72ecef2f2..e22d58cf4 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -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 != '/') {