fixed one bug in trigger server template that __conf_file should be used than conf_file_ptr.

This commit is contained in:
zhengshuxin 2017-07-24 22:04:08 +08:00
parent b8237e011b
commit 443e94d3d9

View File

@ -416,7 +416,7 @@ void acl_trigger_server_main(int argc, char **argv, ACL_TRIGGER_SERVER_FN servic
int c, socket_count = 1, key, fd, fdtype = 0;
char *lock_path;
const char *root_dir = 0, *user_name = 0;
const char *transport = 0, *conf_file_ptr = 0;
const char *transport = 0;
ACL_VSTREAM *stream;
ACL_VSTRING *why;
ACL_WATCHDOG *watchdog;
@ -476,12 +476,12 @@ void acl_trigger_server_main(int argc, char **argv, ACL_TRIGGER_SERVER_FN servic
trigger_server_init(argv[0]);
if (conf_file_ptr == 0)
if (__conf_file[9] == 0)
acl_msg_fatal("%s(%d), %s: need \"-f pathname\"",
__FILE__, __LINE__, myname);
else if (acl_msg_verbose)
acl_msg_info("%s(%d), %s: configure file = %s",
__FILE__, __LINE__, myname, conf_file_ptr);
__FILE__, __LINE__, myname, __conf_file);
/*
* Application-specific initialization.