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 703488 Details for
Bug 916227
Corosync ignore sigint (and other signals) if exit is requested before full initialization
[?]
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
2013-02-27-0001-Move-corosync-exit-semaphore-initialization.patch (text/plain), 1.79 KB, created by
Jan Friesse
on 2013-02-27 15:11:11 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Jan Friesse
Created:
2013-02-27 15:11:11 UTC
Size:
1.79 KB
patch
obsolete
>From 1340b9372cb12ff327a87154568567786e7f6e65 Mon Sep 17 00:00:00 2001 >From: jason <huzhijiang@gmail.com> >Date: Wed, 27 Feb 2013 15:34:48 +0100 >Subject: [PATCH] Move corosync exit semaphore initialization > >When signal is delivered before initialization of exit semaphore, >corosync will never exit. Solution is to initialize semaphore earlier. > >Signed-off-by: jason <huzhijiang@gmail.com> >--- > exec/main.c | 16 +++++++++------- > 1 files changed, 9 insertions(+), 7 deletions(-) > >diff --git a/exec/main.c b/exec/main.c >index 1d581ff..6c8ea35 100644 >--- a/exec/main.c >+++ b/exec/main.c >@@ -1620,6 +1620,14 @@ int main (int argc, char **argv, char **envp) > log_printf (LOGSYS_LEVEL_NOTICE, "Corosync Cluster Engine ('%s'): started and ready to provide service.\n", VERSION); > log_printf (LOGSYS_LEVEL_INFO, "Corosync built-in features:" PACKAGE_FEATURES "\n"); > >+ /* >+ * Create exit semaphore >+ */ >+ res = sem_init (&corosync_exit_sem, 0, 0); >+ if (res != 0) { >+ log_printf (LOGSYS_LEVEL_ERROR, "Corosync Executive couldn't create exit thread.\n"); >+ corosync_exit_error (AIS_DONE_FATAL_ERR); >+ } > > (void)signal (SIGINT, sigintr_handler); > (void)signal (SIGUSR2, sigusr2_handler); >@@ -1803,14 +1811,8 @@ int main (int argc, char **argv, char **envp) > // TODO what is this hack for? usleep(totem_config.token_timeout * 2000); > > /* >- * Create semaphore and start "exit" thread >+ * Start "exit" thread > */ >- res = sem_init (&corosync_exit_sem, 0, 0); >- if (res != 0) { >- log_printf (LOGSYS_LEVEL_ERROR, "Corosync Executive couldn't create exit thread.\n"); >- corosync_exit_error (AIS_DONE_FATAL_ERR); >- } >- > res = pthread_create (&corosync_exit_thread, NULL, corosync_exit_thread_handler, NULL); > if (res != 0) { > log_printf (LOGSYS_LEVEL_ERROR, "Corosync Executive couldn't create exit thread.\n"); >-- >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 916227
: 703488