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 870130 Details for
Bug 1072062
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.29 KB, created by
Richard W.M. Jones
on 2014-03-03 21:12:45 UTC
(
hide
)
Description:
0002-run-Use-timeout-foreground-option.patch
Filename:
MIME Type:
Creator:
Richard W.M. Jones
Created:
2014-03-03 21:12:45 UTC
Size:
1.29 KB
patch
obsolete
>From 01b7c7f5c09655b61c367827ee34315fa129c837 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. >--- > run.in | 12 ++++++------ > 1 files changed, 6 insertions(+), 6 deletions(-) > >diff --git a/run.in b/run.in >index d82ba56..c6bc9c4 100755 >--- a/run.in >+++ b/run.in >@@ -186,13 +186,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.7.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 1072062
:
870129
| 870130 |
870131