Skip to content
GitLab
Menu
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
21841dd2
Commit
21841dd2
authored
May 21, 1999
by
Per Cederqvist
Browse files
(main): Lock and unlock the database.
parent
fcf8d853
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/dbck.c
View file @
21841dd2
/*
* $Id: dbck.c,v 0.4
8
1999/05/2
0
06:5
1
:5
9
ceder Exp $
* $Id: dbck.c,v 0.4
9
1999/05/2
1
06:5
2
:5
6
ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 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.4
8
1999/05/2
0
06:5
1
:5
9
ceder Exp $"
;
rcsid
=
"$Id: dbck.c,v 0.4
9
1999/05/2
1
06:5
2
:5
6
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -78,6 +78,7 @@ USE(rcsid);
#include "ram-output.h"
#include "unused.h"
#include "local-to-global.h"
#include "lockdb.h"
#define OPT_PERS_PRESENTATION_CONF 1
...
...
@@ -1651,6 +1652,9 @@ main (int argc,
s_set_storage_management
(
smalloc
,
srealloc
,
sfree
);
if
(
lock_db
()
<
0
)
exit
(
1
);
init_data_base
();
errors
=
check_data_base
();
...
...
@@ -1702,6 +1706,7 @@ main (int argc,
}
}
}
unlock_db
();
return
errors
!=
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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