fix: when msg_fd is 0, use STDOUT_FILENO

This commit is contained in:
Ryo Nakamura
2023-03-15 01:35:55 +09:00
parent 4e80b05da7
commit 24fef5f539
3 changed files with 7 additions and 0 deletions

View File

@@ -194,6 +194,9 @@ static int validate_and_set_defaut_params(struct mscp_opts *o)
if (o->max_startups == 0)
o->max_startups = DEFAULT_MAX_STARTUPS;
if (o->msg_fd == 0)
o->msg_fd = STDOUT_FILENO;
return 0;
}