summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-10 03:00:17 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-10 03:00:17 +0300
commit9d8e4877019a7eac6b93263a49a4dc6ab02111a3 (patch)
tree7d09ce93f805b06cae805aaf5f9b6583737ee744
parent3b22392e73e52ffb2b001288ce9ab54101a03529 (diff)
downloadplugin-9d8e4877019a7eac6b93263a49a4dc6ab02111a3.tar.gz
plugin-9d8e4877019a7eac6b93263a49a4dc6ab02111a3.tar.bz2
plugin-9d8e4877019a7eac6b93263a49a4dc6ab02111a3.tar.xz
plugin-9d8e4877019a7eac6b93263a49a4dc6ab02111a3.zip
Add support for exit codes for building code.
-rw-r--r--src/echar/char.c3
-rw-r--r--src/elogin/parse.c1
-rw-r--r--src/emap/atcommand.c1
3 files changed, 4 insertions, 1 deletions
diff --git a/src/echar/char.c b/src/echar/char.c
index 6223ac4..b9e339e 100644
--- a/src/echar/char.c
+++ b/src/echar/char.c
@@ -329,8 +329,9 @@ void echar_parse_map_serverexit(int mapFd)
{
case 100: // all exit
case 101: // all restart
- case 104: // git pull and all restart
case 102: // restart char and map server
+ case 104: // git pull and all restart
+ case 105: // build all
echat_send_login_serverexit(code);
HSleep(1);
core->shutdown_callback();
diff --git a/src/elogin/parse.c b/src/elogin/parse.c
index c2d1d10..15b0f7a 100644
--- a/src/elogin/parse.c
+++ b/src/elogin/parse.c
@@ -223,6 +223,7 @@ void elogin_parse_serverexit(int fd)
case 100: // all exit
case 101: // all restart
case 104: // git pull and all restart
+ case 105: // build all
core->shutdown_callback();
break;
case 102: // restart char and map server
diff --git a/src/emap/atcommand.c b/src/emap/atcommand.c
index 54370af..8d6979a 100644
--- a/src/emap/atcommand.c
+++ b/src/emap/atcommand.c
@@ -147,6 +147,7 @@ ACMD1(mapExit)
// 102 - restart char and map servers
// 103 - restart map server
// 104 - git pull and restart all servers
+// 105 - build all
ACMD1(serverExit)
{
int code = 0;