summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2010-01-26 18:44:06 -0500
committerJared Adams <jaxad0127@gmail.com>2010-01-26 23:45:24 +0000
commit88b9a3ac5b0e2b99d1105d69d4b0da608d7ae1e4 (patch)
treed05c15e709bee94eaf59cecc65878dee0e765b13 /src/char
parentdc0c8b2ca0f3867f1b4641092b9f90738ca8c7af (diff)
downloadtmwa-88b9a3ac5b0e2b99d1105d69d4b0da608d7ae1e4.tar.gz
tmwa-88b9a3ac5b0e2b99d1105d69d4b0da608d7ae1e4.tar.bz2
tmwa-88b9a3ac5b0e2b99d1105d69d4b0da608d7ae1e4.tar.xz
tmwa-88b9a3ac5b0e2b99d1105d69d4b0da608d7ae1e4.zip
Added password encryption to the accounts database, removed logging of plaintext passwords Will auto-convert accounts DB to new format.
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 3755d1f..2b25399 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -16,7 +16,6 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <stdarg.h>
-#include <sys/wait.h>
#include "core.h"
#include "socket.h"
@@ -115,8 +114,6 @@ int online_gm_display_min_level = 20; // minimum GM level to display 'GM' when
int *online_chars; // same size of char_dat, and id value of current server (or -1)
time_t update_online; // to update online files when we receiving information from a server (not less than 8 seconds)
-pid_t pid = 0; // For forked DB writes
-
//------------------------------
// Writing function of logs file
//------------------------------
@@ -831,17 +828,7 @@ void mmo_char_sync (void)
//----------------------------------------------------
int mmo_char_sync_timer (int tid, unsigned int tick, int id, int data)
{
- if (pid != 0)
- {
- int status;
- pid_t temp = waitpid (pid, &status, WNOHANG);
-
- // Need to check status too?
- if (temp == 0)
- {
- return 0;
- }
- }
+ pid_t pid;
// This can take a lot of time. Fork a child to handle the work and return at once
// If we're unable to fork just continue running the function normally