Commit 3e95a007 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(main): Don't terminate until a confirmation is read on stdin when

	running under DejaGnu.
parent 9e94481e
/*
* $Id: ramkomd.c,v 0.67 1998/08/07 23:32:08 ceder Exp $
* $Id: ramkomd.c,v 0.68 1998/08/22 17:40:01 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -39,7 +39,7 @@
*/
static const char *
rcsid = "$Id: ramkomd.c,v 0.67 1998/08/07 23:32:08 ceder Exp $";
rcsid = "$Id: ramkomd.c,v 0.68 1998/08/22 17:40:01 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -502,6 +502,16 @@ main (int argc,
dump_exit_statistics();
log("%s terminated normally.\n", argv[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)
{
log("Press enter to terminate lyskomd\n");
getchar();
}
return 0;
}
......
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