Commit 21841dd2 authored by Per Cederqvist's avatar Per Cederqvist

(main): Lock and unlock the database.

parent fcf8d853
/*
* $Id: dbck.c,v 0.48 1999/05/20 06:51:59 ceder Exp $
* $Id: dbck.c,v 0.49 1999/05/21 06:52:56 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.48 1999/05/20 06:51:59 ceder Exp $";
rcsid = "$Id: dbck.c,v 0.49 1999/05/21 06:52:56 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;
}
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