Added logging for crash during chatsessions

This commit is contained in:
Michiel Broek 2006-01-23 20:34:40 +00:00
parent e07d112d75
commit 243f0f47cf
2 changed files with 7 additions and 2 deletions

View File

@ -9,6 +9,7 @@ v0.83.8 22-Jan-2006
mbtask: mbtask:
Added logging of some user messages to chat.log Added logging of some user messages to chat.log
Added logging for crashes during chatsessions.
v0.83.7 31-Dec-2005 - 22-Jan-2006 v0.83.7 31-Dec-2005 - 22-Jan-2006

View File

@ -4,7 +4,7 @@
* Purpose ...............: MBSE BBS Daemon * Purpose ...............: MBSE BBS Daemon
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2005 * Copyright (C) 1997-2006
* *
* Michiel Broek FIDO: 2:280/2802 * Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10 * Beekmansbos 10
@ -652,7 +652,11 @@ void *cmd_thread(void)
memset(&buf, 0, sizeof(buf)); memset(&buf, 0, sizeof(buf));
fromlen = sizeof(from); fromlen = sizeof(from);
rlen = recvfrom(sock, buf, sizeof(buf) -1, 0, (struct sockaddr *)&from, &fromlen); rlen = recvfrom(sock, buf, sizeof(buf) -1, 0, (struct sockaddr *)&from, &fromlen);
if (rlen == -1) {
Syslog('?', "$recvfrom()");
} else {
do_cmd(buf); do_cmd(buf);
}
} else { } else {
Syslog('-', "Return poll rc=%d, events=%04x", rc, pfd.revents); Syslog('-', "Return poll rc=%d, events=%04x", rc, pfd.revents);
} }