Skip to content

Commit

Permalink
master: Fix compiling with systemd after /dev/null changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Nov 16, 2016
1 parent 83d0c81 commit aeef471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/master/service-listen.c
Expand Up @@ -324,7 +324,7 @@ static int services_verify_systemd(struct service_list *service_list)
i_error("systemd listens on port %d, but it's not configured in Dovecot. Closing.",port);
if (shutdown(fd, SHUT_RDWR) < 0 && errno != ENOTCONN)
i_error("shutdown() failed: %m");
if (dup2(null_fd, fd) < 0)
if (dup2(dev_null_fd, fd) < 0)
i_error("dup2() failed: %m");
}
}
Expand Down

0 comments on commit aeef471

Please sign in to comment.