summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/monitor/monitor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index f32fe36ef..9c54e98e7 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -2850,6 +2850,9 @@ int main(int argc, const char *argv[])
/* set up things like debug , signals, daemonization, etc... */
monitor->conf_path = CONFDB_MONITOR_CONF_ENTRY;
+ ret = close(STDIN_FILENO);
+ if (ret != EOK) return 6;
+
ret = server_setup(MONITOR_NAME, flags, monitor->conf_path, &main_ctx);
if (ret != EOK) return 2;