mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
Update skynet_main.c (#1890)
Putting the relevant code together makes it easier to understand
This commit is contained in:
@@ -151,6 +151,7 @@ main(int argc, char *argv[]) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
_init_env(L);
|
_init_env(L);
|
||||||
|
lua_close(L);
|
||||||
|
|
||||||
config.thread = optint("thread",8);
|
config.thread = optint("thread",8);
|
||||||
config.module_path = optstring("cpath","./cservice/?.so");
|
config.module_path = optstring("cpath","./cservice/?.so");
|
||||||
@@ -161,8 +162,6 @@ main(int argc, char *argv[]) {
|
|||||||
config.logservice = optstring("logservice", "logger");
|
config.logservice = optstring("logservice", "logger");
|
||||||
config.profile = optboolean("profile", 1);
|
config.profile = optboolean("profile", 1);
|
||||||
|
|
||||||
lua_close(L);
|
|
||||||
|
|
||||||
skynet_start(&config);
|
skynet_start(&config);
|
||||||
skynet_globalexit();
|
skynet_globalexit();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user