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 870159 Details for
Bug 1072079
Ruby bindings for libguestfs throws an error periodically
[?]
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]
0002-run-Use-timeout-foreground-option.patch
0002-run-Use-timeout-foreground-option.patch (text/plain), 1.36 KB, created by
Richard W.M. Jones
on 2014-03-03 21:48:09 UTC
(
hide
)
Description:
0002-run-Use-timeout-foreground-option.patch
Filename:
MIME Type:
Creator:
Richard W.M. Jones
Created:
2014-03-03 21:48:09 UTC
Size:
1.36 KB
patch
obsolete
>From 42d70ecd7900fb7f1aa40b35848ae54291563027 Mon Sep 17 00:00:00 2001 >From: "Richard W.M. Jones" <rjones@redhat.com> >Date: Thu, 19 Dec 2013 08:21:53 +0000 >Subject: [PATCH 2/3] run: Use timeout --foreground option. > >If timeout doesn't have this option (RHEL 6) don't use timeout at all. > >Attempt to fix RHBZ#1025269. > >(cherry picked from commit 681488877456b83f039dc518861f29ab4e1857f0) >--- > run.in | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/run.in b/run.in >index 5ab008b..5a45888 100755 >--- a/run.in >+++ b/run.in >@@ -208,13 +208,13 @@ timeout_kill=30s > > # Do we have Padraig's timeout utility (from coreutils)? > if timeout --help >/dev/null 2>&1; then >- # Does this version of timeout have the -k option? (Not on RHEL 6) >- if timeout -k 10s 10s true >/dev/null 2>&1; then >- timeout_k_opt="-k $timeout_kill" >+ # Must use the --foreground option (RHBZ#1025269). >+ if timeout --foreground 2 sleep 0 >/dev/null 2>&1; then >+ # Does this version of timeout have the -k option? (Not on RHEL 6) >+ if timeout -k 10s 10s true >/dev/null 2>&1; then >+ timeout="timeout -k $timeout_kill $timeout_period" >+ fi > fi >- # Timeout (SIGTERM) after $timeout_period. >- # Then send a second SIGKILL $timeout_kill seconds later. >- timeout="timeout $timeout_k_opt $timeout_period" > fi > > pid=$$ >-- >1.8.3.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 1072079
:
870158
| 870159 |
870160