blob: c20547d8c5f8e4710430768bfa7ded9eb80f33a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- src/master/main.c.orig 2019-12-04 09:31:27 UTC
+++ src/master/main.c
@@ -866,6 +866,8 @@ int main(int argc, char *argv[])
i_fatal("dup2(dev_null_fd) failed: %m");
if (!foreground && dup2(dev_null_fd, STDOUT_FILENO) < 0)
i_fatal("dup2(dev_null_fd) failed: %m");
+ if (!foreground && dup2(dev_null_fd, STDERR_FILENO) < 0)
+ i_fatal("dup2(dev_null_fd) failed: %m");
pidfile_path =
i_strconcat(set->base_dir, "/"MASTER_PID_FILE_NAME, NULL);
|