Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
2ca6cdb6
Commit
2ca6cdb6
authored
Jun 05, 1999
by
Per Cederqvist
Browse files
(main): Don't die until a character has been read if -d is used.
parent
65305815
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/dbck.c
View file @
2ca6cdb6
/*
* $Id: dbck.c,v 0.5
3
1999/0
5/31 12:17:06 by
er
s
Exp $
* $Id: dbck.c,v 0.5
4
1999/0
6/05 20:48:44 ced
er Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -35,7 +35,7 @@
static
const
char
*
rcsid
=
"$Id: dbck.c,v 0.5
3
1999/0
5/31 12:17:06 by
er
s
Exp $"
;
rcsid
=
"$Id: dbck.c,v 0.5
4
1999/0
6/05 20:48:44 ced
er Exp $"
;
#include
"rcs.h"
USE
(
rcsid
);
...
...
@@ -1690,7 +1690,20 @@ main (int argc,
if
(
need_rw
)
{
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 dbck
\n
"
);
getchar
();
}
exit
(
1
);
}
have_lock
=
1
;
}
...
...
@@ -1751,5 +1764,16 @@ main (int argc,
if
(
have_lock
)
unlock_db
();
/* 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 dbck
\n
"
);
getchar
();
}
return
errors
!=
0
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment