Skip to content

Commit

Permalink
Add crash reporting to odasrv
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMax committed Jan 18, 2017
1 parent 966d9a8 commit d8bf0c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions server/src/i_main.cpp
Expand Up @@ -44,6 +44,7 @@
#include <math.h>
#include <time.h>

#include "i_crash.h"
#include "m_argv.h"
#include "d_main.h"
#include "i_system.h"
Expand Down Expand Up @@ -106,6 +107,9 @@ BOOL WINAPI ConsoleHandlerRoutine(DWORD dwCtrlType)

int __cdecl main(int argc, char *argv[])
{
// [AM] Set crash callbacks, so we get something useful from crashes.
I_SetCrashCallbacks();

try
{
// Handle ctrl-c, close box, shutdown and logoff events
Expand Down Expand Up @@ -230,6 +234,9 @@ void daemon_init(void)

int main (int argc, char **argv)
{
// [AM] Set crash callbacks, so we get something useful from crashes.
I_SetCrashCallbacks();

try
{
if(!getuid() || !geteuid())
Expand Down

0 comments on commit d8bf0c0

Please sign in to comment.