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
oai
freediameter
Commits
a29c97bd
Commit
a29c97bd
authored
Feb 09, 2010
by
Sebastien Decugis
Browse files
Fix deadlock in some circumstances
parent
3c69256a
Changes
1
Hide whitespace changes
Inline
Side-by-side
libfreeDiameter/log.c
View file @
a29c97bd
...
...
@@ -49,6 +49,12 @@ char * fd_debug_one_file = NULL;
int
fd_breaks
=
0
;
int
fd_breakhere
(
void
)
{
return
++
fd_breaks
;
}
static
void
fd_cleanup_mutex_silent
(
void
*
mutex
)
{
(
void
)
pthread_mutex_unlock
((
pthread_mutex_t
*
)
mutex
);
}
/* Log a debug message */
void
fd_log_debug
(
char
*
format
,
...
)
{
...
...
@@ -56,7 +62,7 @@ void fd_log_debug ( char * format, ... )
(
void
)
pthread_mutex_lock
(
&
fd_log_lock
);
pthread_cleanup_push
(
fd_cleanup_mutex
,
&
fd_log_lock
);
pthread_cleanup_push
(
fd_cleanup_mutex
_silent
,
&
fd_log_lock
);
va_start
(
ap
,
format
);
vfprintf
(
stdout
,
format
,
ap
);
...
...
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