Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 656433 Details for
Bug 881729
logsys: Race between logsys_format_set and log_printf_to_logs functions
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch - part 2 - Avoid deadlock
2012-12-03-0001-log-Avoid-deadlock-caused-by-previous-commit.patch (text/plain), 986 bytes, created by
Jan Friesse
on 2012-12-03 08:42:08 UTC
(
hide
)
Description:
Proposed patch - part 2 - Avoid deadlock
Filename:
MIME Type:
Creator:
Jan Friesse
Created:
2012-12-03 08:42:08 UTC
Size:
986 bytes
patch
obsolete
>From e69f322d52a967e19ac6cf4eba60c54fc64b1688 Mon Sep 17 00:00:00 2001 >From: Jan Friesse <jfriesse@redhat.com> >Date: Fri, 30 Nov 2012 12:28:27 +0100 >Subject: [PATCH] log: Avoid deadlock caused by previous commit > >Signed-off-by: Jan Friesse <jfriesse@redhat.com> >--- > exec/logsys.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/exec/logsys.c b/exec/logsys.c >index b82c647..c4611bc 100644 >--- a/exec/logsys.c >+++ b/exec/logsys.c >@@ -443,13 +443,13 @@ static void log_printf_to_logs ( > subsysid = LOGSYS_DECODE_SUBSYSID(rec_ident); > level = LOGSYS_DECODE_LEVEL(rec_ident); > >- pthread_mutex_lock (&logsys_config_mutex); >- > if (!((LOGSYS_DECODE_RECID(rec_ident) == LOGSYS_RECID_LOG) || > (logsys_loggers[subsysid].trace1_allowed && LOGSYS_DECODE_RECID(rec_ident) == LOGSYS_RECID_TRACE1))) { > return; > } > >+ pthread_mutex_lock (&logsys_config_mutex); >+ > while ((c = format_buffer[format_buffer_idx])) { > cutoff = 0; > if (c != '%') { >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 881729
:
654285
| 656433