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 910807 Details for
Bug 1106457
Doesn't implement NOTIFY_SOCKET ERRNO
[?]
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]
systemd patch
0233-errno.patch (text/plain), 1.58 KB, created by
Miguel Angel Ajo
on 2014-06-20 15:44:37 UTC
(
hide
)
Description:
systemd patch
Filename:
MIME Type:
Creator:
Miguel Angel Ajo
Created:
2014-06-20 15:44:37 UTC
Size:
1.58 KB
patch
obsolete
>From bd9127d97ae66b547a6e3a89a70b5045d706b68c Mon Sep 17 00:00:00 2001 >From: Miguel Angel <majopela@redhat.com> >Date: Wed, 2 Apr 2014 14:41:26 +0200 >Subject: [PATCH] add ERRNO processing to NOTIFY_SOCKET > >--- > src/core/service.c | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > >diff --git a/src/core/service.c b/src/core/service.c >index cefb253..6c27bb9 100644 >--- a/src/core/service.c >+++ b/src/core/service.c >@@ -3376,6 +3376,7 @@ static void service_notify_cgroup_empty_event(Unit *u) { > static void service_notify_message(Unit *u, pid_t pid, char **tags) { > Service *s = SERVICE(u); > const char *e; >+ int errno; > > assert(u); > >@@ -3414,6 +3415,23 @@ static void service_notify_message(Unit *u, pid_t pid, char **tags) { > } > } > >+ /* Interpret ERRNO= */ >+ if ((e = strv_find_prefix(tags, "ERRNO=")) && >+ (s->state == SERVICE_START || >+ s->state == SERVICE_START_POST || >+ s->state == SERVICE_RUNNING || >+ s->state == SERVICE_RELOAD)) { >+ >+ if (safe_atoi(e + 6, &errno) < 0) >+ log_warning_unit(u->id, >+ "Failed to parse notification message %s", e); >+ else { >+ log_debug_unit(u->id, >+ "%s: got %s", u->id, e); >+ s->main_exec_status.code = errno; >+ } >+ } >+ > /* Interpret READY= */ > if (s->type == SERVICE_NOTIFY && > s->state == SERVICE_START &&
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 1106457
:
910807
|
910809
|
910810
|
913408
|
914407