projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update RPM requires
[yaz-moved-to-github.git]
/
src
/
log.c
diff --git
a/src/log.c
b/src/log.c
index
265dd77
..
912287b
100644
(file)
--- a/
src/log.c
+++ b/
src/log.c
@@
-332,7
+332,10
@@
static void yaz_log_open_check(struct tm *tm, int force, const char *filemode)
#ifdef WIN32
yaz_log_close();
#endif
#ifdef WIN32
yaz_log_close();
#endif
- new_file = fopen(cur_filename, filemode);
+ if (!strncmp(cur_filename, "fd=", 3))
+ new_file = fdopen(atoi(cur_filename + 3), filemode);
+ else
+ new_file = fopen(cur_filename, filemode);
if (new_file)
{
yaz_log_close();
if (new_file)
{
yaz_log_close();
@@
-577,6
+580,8
@@
int yaz_log_mask_str(const char *str)
return yaz_log_mask_str_x(str, l_level);
}
return yaz_log_mask_str_x(str, l_level);
}
+/* this function is called by yaz_log_init_globals & yaz_init_globals
+ and, thus, may not call any of them indirectly */
int yaz_log_mask_str_x(const char *str, int level)
{
const char *p;
int yaz_log_mask_str_x(const char *str, int level)
{
const char *p;