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 939370 Details for
Bug 1139701
systemd resources operations timeout and get unmanaged
[?]
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.
reproducer v1
reproducer_v1.patch (text/plain), 1.94 KB, created by
David Vossel
on 2014-09-19 15:02:37 UTC
(
hide
)
Description:
reproducer v1
Filename:
MIME Type:
Creator:
David Vossel
Created:
2014-09-19 15:02:37 UTC
Size:
1.94 KB
patch
obsolete
>diff --git a/Makefile.am b/Makefile.am >index 0b425fc..17ea077 100644 >--- a/Makefile.am >+++ b/Makefile.am >@@ -38,7 +38,7 @@ test_DATA = valgrind-pcmk.suppressions > > # Scratch file for ad-hoc testing > scratch_SOURCES = scratch.c >-scratch_LDADD = $(top_builddir)/lib/common/libcrmcommon.la -lm >+scratch_LDADD = $(top_builddir)/lib/common/libcrmcommon.la $(top_builddir)/lib/services/libcrmservice.la -lm > > core: > @echo "Building only core components: $(CORE)" >diff --git a/scratch.c b/scratch.c >index 48f20dd..05e775d 100644 >--- a/scratch.c >+++ b/scratch.c >@@ -32,31 +32,36 @@ > #include <crm/cib.h> > > #define OPTARGS "X:" >+#include <lib/services/systemd.h> >+ >+void action_callback(svc_action_t *op); >+ >+void action_callback(svc_action_t *op) >+{ >+ static long long lpc = 0; >+ >+ lpc++; >+ if(lpc % 1000 == 0) { >+ fprintf(stderr, "."); >+ } >+ >+ if(op && (op->rc != 0 || op->status != 0)) { >+ fprintf(stderr, "\n%lld successful calls: %d %d\n", lpc, op->rc, op->status); >+ exit(1); >+ } >+ >+ op = resources_action_create("bigbang", "systemd", NULL, >+ "abrtd", "monitor", 0, 60000, NULL); >+ CRM_LOG_ASSERT(services_action_async(op, action_callback)); >+} > > int > main(int argc, char **argv) > { >- int flag; >- xmlNode *top = NULL; >- const char *xml_file = NULL; >- >- crm_log_init(NULL, LOG_TRACE, FALSE, TRUE, argc, argv, FALSE); >- while (1) { >- flag = getopt(argc, argv, OPTARGS); >- if (flag == -1) >- break; >- >- switch (flag) { >- case 'X': >- xml_file = optarg; >- break; >- default: >- printf("Unknown option: -%c\n", flag); >- break; >- } >- } >+ GMainLoop *mloop = g_main_new(FALSE); > >- top = filename2xml(xml_file); >- free_xml(top); >+ crm_log_init(NULL, LOG_INFO, FALSE, TRUE, argc, argv, FALSE); >+ action_callback(NULL); >+ g_main_run(mloop); > return 0; > }
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 Raw
Actions:
View
Attachments on
bug 1139701
:
935701
| 939370 |
940204