summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2010-02-18 19:37:31 -0500
committerMadCamel <madcamel@gmail.com>2010-02-18 19:37:31 -0500
commit4863d4d341423627711c1e318e2c38b678bd1567 (patch)
tree5dfac7ca79d5490073b0bbcc7958bb87f028a20f
parentfbb6e34783691031624392219f7b7eeb5f247ae6 (diff)
downloadtmwa-4863d4d341423627711c1e318e2c38b678bd1567.tar.gz
tmwa-4863d4d341423627711c1e318e2c38b678bd1567.tar.bz2
tmwa-4863d4d341423627711c1e318e2c38b678bd1567.tar.xz
tmwa-4863d4d341423627711c1e318e2c38b678bd1567.zip
make login-server child REALLY exit when done writing DB
-rw-r--r--src/char/char.c2
-rw-r--r--src/login/login.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 3755d1f..27e9a1c 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -853,7 +853,7 @@ int mmo_char_sync_timer (int tid, unsigned int tick, int id, int data)
// If we're a child we should suicide now.
if (pid == 0)
- exit (0);
+ _exit (0);
return 0;
}
diff --git a/src/login/login.c b/src/login/login.c
index 402efc7..0e0448e 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -1074,7 +1074,7 @@ int check_auth_sync (int tid, unsigned int tick, int id, int data)
// If we're a child we should suicide now.
if (pid == 0)
- exit (0);
+ _exit (0);
return 0;
}