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 850010 Details for
Bug 1052882
pulse: ignore EINTR while waiting for semaphore
[?]
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]
Ignore EINTR from sem_timedwait
bz1052882_ignore-EINTR-from-sem_timedwait.patch (text/plain), 1.14 KB, created by
Ryan O'Hara
on 2014-01-14 15:32:49 UTC
(
hide
)
Description:
Ignore EINTR from sem_timedwait
Filename:
MIME Type:
Creator:
Ryan O'Hara
Created:
2014-01-14 15:32:49 UTC
Size:
1.14 KB
patch
obsolete
>From 2994abbd523ae0cef2e3d43a43460e2f7e54373d Mon Sep 17 00:00:00 2001 >From: Ryan O'Hara <rohara@redhat.com> >Date: Mon, 13 Jan 2014 10:37:18 -0600 >Subject: [PATCH] Ignore EINTR from sem_timedwait > >Signed-off-by: Ryan O'Hara <rohara@redhat.com> >--- > pulse.c | 18 ++++++++++++------ > 1 file changed, 12 insertions(+), 6 deletions(-) > >diff --git a/pulse.c b/pulse.c >index a9cd4ab..0fd317d 100644 >--- a/pulse.c >+++ b/pulse.c >@@ -1432,12 +1432,18 @@ activateLvs (struct lvsConfig *config, int flags) > execv (lvsBinary, argv); > exit (-1); > } >- if (sem_timedwait (sem, &ts) != 0) { >- piranha_log (flags, (char *) "Error waiting for semaphore: %s", strerror(errno)); >- sem_unlink (LVS_MUTEX); >- kill (child, SIGKILL); >- exit (-1); >- } >+ >+ do { >+ if (sem_timedwait (sem, &ts) != 0) { >+ if (errno == EINTR) >+ continue; >+ piranha_log (flags, (char *) "Error waiting for semaphore: %s", strerror(errno)); >+ sem_unlink (LVS_MUTEX); >+ kill (child, SIGKILL); >+ exit (-1); >+ } >+ } while (0); >+ > sem_unlink (LVS_MUTEX); > } > >-- >1.8.1.4 >
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 1052882
:
849843
| 850010