diff options
author | Haru <haru@dotalux.com> | 2014-05-09 06:20:52 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-05-09 07:40:43 +0200 |
commit | 581ff22b9bad7567a27980df31636f0c75ba5fc2 (patch) | |
tree | 83aed2830b805ad154c91623ace99452620bce8b /src/char/char.c | |
parent | 84c1d0dd15553df0b2b61c028ea9aead381e7115 (diff) | |
download | hercules-581ff22b9bad7567a27980df31636f0c75ba5fc2.tar.gz hercules-581ff22b9bad7567a27980df31636f0c75ba5fc2.tar.bz2 hercules-581ff22b9bad7567a27980df31636f0c75ba5fc2.tar.xz hercules-581ff22b9bad7567a27980df31636f0c75ba5fc2.zip |
Added support to return a different exit status to the OS.
- This can be easily used by plugins.
- See an example at
http://github.com/HerculesWS/StaffPlugins/Haru/script_mapquit
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c index cf961fd93..77e393c0d 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -5336,7 +5336,7 @@ int char_config_read(const char* cfgName) return 0; } -void do_final(void) { +int do_final(void) { int i; ShowStatus("Terminating...\n"); @@ -5373,6 +5373,7 @@ void do_final(void) { aFree(server[i].map); ShowStatus("Finished.\n"); + return EXIT_SUCCESS; } //------------------------------ |