Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
pacemaker
pacemaker-tools-dont-reinvent-glib-wheel.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker-tools-dont-reinvent-glib-wheel.patch of Package pacemaker
commit 8cc83c3497c1bbc33dc3a051af050ad98baaed32 Author: Ken Gaillot <kgaillot@redhat.com> Date: Thu Nov 2 15:08:14 2017 -0500 Refactor: tools: don't reinvent the glib wheel diff --git a/tools/crm_resource.c b/tools/crm_resource.c index 98b9ad7cd..92255df52 100644 --- a/tools/crm_resource.c +++ b/tools/crm_resource.c @@ -57,7 +57,6 @@ resource_ipc_connection_destroy(gpointer user_data) crm_exit(1); } -static bool mainloop_running = FALSE; static void start_mainloop(void) { @@ -65,7 +64,6 @@ start_mainloop(void) return; } - mainloop_running = TRUE; mainloop = g_main_new(FALSE); fprintf(stderr, "Waiting for %d replies from the CRMd", crmd_replies_needed); crm_debug("Waiting for %d replies from the CRMd", crmd_replies_needed); @@ -83,7 +81,7 @@ resource_ipc_callback(const char *buffer, ssize_t length, gpointer userdata) crm_log_xml_trace(msg, "[inbound]"); crmd_replies_needed--; - if (crmd_replies_needed == 0 && mainloop_running) { + if (crmd_replies_needed == 0 && g_main_loop_is_running(mainloop)) { fprintf(stderr, " OK\n"); crm_debug("Got all the replies we expected"); return crm_exit(pcmk_ok);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor