mirror of
https://github.com/upa/mscp.git
synced 2026-02-24 00:44:44 +08:00
fix: when msg_fd is 0, use STDOUT_FILENO
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user