[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Prevent event listener socket from being inherited by children.
# HG changeset patch # User jbulpin@xxxxxxxxxxxxxxxxxxxxxxx # Node ID 8cf7d1d715f46076d5c0c88dede313851cf98d43 # Parent d25ac5cbd8d39543901150bd9a88960887e57841 Prevent event listener socket from being inherited by children. This was passing down to dhclient which was keeping the 8001 port open and preventing xend restarting. Also fixed a case typo in setCloExec Signed-off-by: James Bulpin <james@xxxxxxxxxxxxx> diff -r d25ac5cbd8d3 -r 8cf7d1d715f4 tools/python/xen/web/tcp.py --- a/tools/python/xen/web/tcp.py Fri Oct 28 16:51:37 2005 +++ b/tools/python/xen/web/tcp.py Sat Oct 29 00:58:00 2005 @@ -99,7 +99,7 @@ return l def SetCloExec(SocketListener): - SocketListener.SetCloExec() + SocketListener.setCloExec() def connectTCP(host, port, factory, timeout=None, bindAddress=None): c = TCPConnector(host, port, factory, timeout=timeout, bindAddress=bindAddress) diff -r d25ac5cbd8d3 -r 8cf7d1d715f4 tools/python/xen/xend/server/event.py --- a/tools/python/xen/xend/server/event.py Fri Oct 28 16:51:37 2005 +++ b/tools/python/xen/xend/server/event.py Sat Oct 29 00:58:00 2005 @@ -192,4 +192,5 @@ if xroot.get_xend_http_server(): port = xroot.get_xend_event_port() interface = xroot.get_xend_address() - tcp.listenTCP(port, factory, interface=interface) + l = tcp.listenTCP(port, factory, interface=interface) + l.setCloExec() _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |