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 936277 Details for
Bug 1133686
virt-sandbox-service create -N dhcp does not work
[?]
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]
bugfix for starting dhclient
0001-v1.1-for-dhclient-use-g_spawn_sync.patch (text/plain), 1.54 KB, created by
Gene Czarcinski
on 2014-09-10 17:56:54 UTC
(
hide
)
Description:
bugfix for starting dhclient
Filename:
MIME Type:
Creator:
Gene Czarcinski
Created:
2014-09-10 17:56:54 UTC
Size:
1.54 KB
patch
obsolete
>From 4c8b769628d78c39cf522e020b4cc95d8eb08878 Mon Sep 17 00:00:00 2001 >From: Gene Czarcinski <gczarcinski@ec.rr.com> >Date: Wed, 10 Sep 2014 07:12:20 -0400 >Subject: [PATCH 1/2] v1.1 for dhclient use g_spawn_sync() >Content-Type: text/plain; charset="utf-8" >Content-Transfer-Encoding: 8bit > >This patch addresses problem RHBZ #1133686. > >For some (unknown to me) reason, g_spawn_async() is not >starting dhclient so that a dhcp NIC can be configured. >However, simply using g_spawn_sync() works. This was the >only use of g_spawn_async(). > >Note: There is no problem using sync instead of async since dhclient will >disconnect and put itself in the background once the network is started. >--- > libvirt-sandbox/libvirt-sandbox-init-common.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > >diff --git a/libvirt-sandbox/libvirt-sandbox-init-common.c b/libvirt-sandbox/libvirt-sandbox-init-common.c >index e5f8af0..49baa5c 100644 >--- a/libvirt-sandbox/libvirt-sandbox-init-common.c >+++ b/libvirt-sandbox/libvirt-sandbox-init-common.c >@@ -113,10 +113,8 @@ static gboolean start_dhcp(const gchar *devname, GError **error) > { > const gchar *argv[] = { "/sbin/dhclient", "--no-pid", devname, NULL }; > >- if (!g_spawn_async(NULL, (gchar**)argv, NULL, >- G_SPAWN_STDOUT_TO_DEV_NULL | >- G_SPAWN_STDERR_TO_DEV_NULL, >- NULL, NULL, NULL, error)) >+ if (!g_spawn_sync(NULL, (gchar**)argv, NULL, 0, >+ NULL, NULL, NULL, NULL, NULL, error)) > return FALSE; > > return TRUE; >-- >1.9.3 >
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 1133686
: 936277 |
936278