mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +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;
|
||||
}
|
||||
_init_env(L);
|
||||
lua_close(L);
|
||||
|
||||
config.thread = optint("thread",8);
|
||||
config.module_path = optstring("cpath","./cservice/?.so");
|
||||
@@ -161,8 +162,6 @@ main(int argc, char *argv[]) {
|
||||
config.logservice = optstring("logservice", "logger");
|
||||
config.profile = optboolean("profile", 1);
|
||||
|
||||
lua_close(L);
|
||||
|
||||
skynet_start(&config);
|
||||
skynet_globalexit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user