Commit 65305815 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(initialize): Don't die until a character has been read if -d is used.

parent ea55f059
/* /*
* $Id: ramkomd.c,v 0.88 1999/06/03 22:11:10 ceder Exp $ * $Id: ramkomd.c,v 0.89 1999/06/05 20:48:19 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#endif #endif
static const char * static const char *
rcsid = "$Id: ramkomd.c,v 0.88 1999/06/03 22:11:10 ceder Exp $"; rcsid = "$Id: ramkomd.c,v 0.89 1999/06/05 20:48:19 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -423,7 +423,20 @@ initialize(const char *config_file) ...@@ -423,7 +423,20 @@ initialize(const char *config_file)
go_daemon(); go_daemon();
if (lock_db() < 0) if (lock_db() < 0)
{
/* Don't actually die until something is entered on stdin in debug
mode. This is mainly here for the benefit of the test suite,
but is could also be useful to be able to attach a debugger and
do pre-mortem debugging of the process at this point. */
if (buglevel > 0)
{
kom_log("Press enter to terminate lyskomd\n");
getchar();
}
exit(1); exit(1);
}
server_init(param.ip_client_host, param.ip_client_port); server_init(param.ip_client_host, param.ip_client_port);
init_data_base(); init_data_base();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment