projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the log statement on sel file descriptor (sel_fd)
[pazpar2-moved-to-github.git]
/
src
/
pazpar2.c
diff --git
a/src/pazpar2.c
b/src/pazpar2.c
index
66e8a17
..
cb69a5e
100644
(file)
--- a/
src/pazpar2.c
+++ b/
src/pazpar2.c
@@
-29,6
+29,7
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "parameters.h"
#include "session.h"
#include "parameters.h"
#include "session.h"
+#include "ppmutex.h"
#include <yaz/daemon.h>
#include <yaz/log.h>
#include <yaz/options.h>
#include <yaz/daemon.h>
#include <yaz/log.h>
#include <yaz/options.h>
@@
-142,7
+143,7
@@
static int sc_main(
case 'V':
show_version();
case 'X':
case 'V':
show_version();
case 'X':
- global_parameters.debug_mode = 1;
+ global_parameters.debug_mode++;
break;
default:
fprintf(stderr, "Usage: pazpar2\n"
break;
default:
fprintf(stderr, "Usage: pazpar2\n"
@@
-170,6
+171,8
@@
static int sc_main(
yaz_log(YLOG_FATAL, "Configuration must be given with option -f");
return 1;
}
yaz_log(YLOG_FATAL, "Configuration must be given with option -f");
return 1;
}
+ pazpar2_mutex_init();
+
config = config_create(config_fname, global_parameters.dump_records);
if (!config)
return 1;
config = config_create(config_fname, global_parameters.dump_records);
if (!config)
return 1;