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 876731 Details for
Bug 1074376
am-utils will no longer start due to missing NFSv2
[?]
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]
Patch - fix debug log deadlock
am-utils-6.2-1.git.e03592f0-fix-debug-log-deadlock.patch (text/plain), 1.95 KB, created by
Ian Kent
on 2014-03-20 07:51:01 UTC
(
hide
)
Description:
Patch - fix debug log deadlock
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2014-03-20 07:51:01 UTC
Size:
1.95 KB
patch
obsolete
>am-utils-6.2-1.git.e03592f0 - fix debug log deadlock > >From: Ian Kent <raven@themaw.net> > >It's possible (and likely) a SIGCHLD signal can arrive while in syslog(2) >and also attempt log log a message leading to deadlock. >--- > libamu/xutil.c | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > >diff --git a/libamu/xutil.c b/libamu/xutil.c >index b3e3a0f..0d9d2ec 100644 >--- a/libamu/xutil.c >+++ b/libamu/xutil.c >@@ -420,14 +420,33 @@ debug_option(char *opt) > void > dplog(const char *fmt, ...) > { >+#ifdef HAVE_SIGACTION >+ sigset_t old, chld; >+#else /* not HAVE_SIGACTION */ >+ int mask; >+#endif /* not HAVE_SIGACTION */ > va_list ap; > >+#ifdef HAVE_SIGACTION >+ sigemptyset(&chld); >+ sigaddset(&chld, SIGCHLD); >+#else /* not HAVE_SIGACTION */ >+ mask = sigblock(sigmask(SIGCHLD)); >+#endif /* not HAVE_SIGACTION */ >+ >+ sigprocmask(SIG_BLOCK, &chld, &old); > if (!logfp) > logfp = stderr; /* initialize before possible first use */ > > va_start(ap, fmt); > real_plog(XLOG_DEBUG, fmt, ap); > va_end(ap); >+ >+#ifdef HAVE_SIGACTION >+ sigprocmask(SIG_SETMASK, &old, NULL); >+#else /* not HAVE_SIGACTION */ >+ mask = sigblock(sigmask(SIGCHLD)); >+#endif /* not HAVE_SIGACTION */ > } > #endif /* DEBUG */ > >@@ -435,14 +454,33 @@ dplog(const char *fmt, ...) > void > plog(int lvl, const char *fmt, ...) > { >+#ifdef HAVE_SIGACTION >+ sigset_t old, chld; >+#else /* not HAVE_SIGACTION */ >+ int mask; >+#endif /* not HAVE_SIGACTION */ > va_list ap; > >+#ifdef HAVE_SIGACTION >+ sigemptyset(&chld); >+ sigaddset(&chld, SIGCHLD); >+ sigprocmask(SIG_BLOCK, &chld, &old); >+#else /* not HAVE_SIGACTION */ >+ mask = sigblock(sigmask(SIGCHLD)); >+#endif /* not HAVE_SIGACTION */ >+ > if (!logfp) > logfp = stderr; /* initialize before possible first use */ > > va_start(ap, fmt); > real_plog(lvl, fmt, ap); > va_end(ap); >+ >+#ifdef HAVE_SIGACTION >+ sigprocmask(SIG_SETMASK, &old, NULL); >+#else /* not HAVE_SIGACTION */ >+ sigsetmask(mask); >+#endif /* not HAVE_SIGACTION */ > } > >
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 1074376
:
876727
|
876728
|
876729
|
876730
| 876731 |
876732
|
876733
|
876735
|
876736