direct-io.hg
changeset 7518:8cf7d1d715f4
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@xensource.com>
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@xensource.com>
author | jbulpin@wicket.uk.xensource.com |
---|---|
date | Sat Oct 29 01:58:00 2005 +0100 (2005-10-29) |
parents | d25ac5cbd8d3 |
children | eee0489b3a17 |
files | tools/python/xen/web/tcp.py tools/python/xen/xend/server/event.py |
line diff
1.1 --- a/tools/python/xen/web/tcp.py Fri Oct 28 17:51:37 2005 +0100 1.2 +++ b/tools/python/xen/web/tcp.py Sat Oct 29 01:58:00 2005 +0100 1.3 @@ -99,7 +99,7 @@ def listenTCP(port, factory, interface=' 1.4 return l 1.5 1.6 def SetCloExec(SocketListener): 1.7 - SocketListener.SetCloExec() 1.8 + SocketListener.setCloExec() 1.9 1.10 def connectTCP(host, port, factory, timeout=None, bindAddress=None): 1.11 c = TCPConnector(host, port, factory, timeout=timeout, bindAddress=bindAddress)
2.1 --- a/tools/python/xen/xend/server/event.py Fri Oct 28 17:51:37 2005 +0100 2.2 +++ b/tools/python/xen/xend/server/event.py Sat Oct 29 01:58:00 2005 +0100 2.3 @@ -192,4 +192,5 @@ def listenEvent(daemon): 2.4 if xroot.get_xend_http_server(): 2.5 port = xroot.get_xend_event_port() 2.6 interface = xroot.get_xend_address() 2.7 - tcp.listenTCP(port, factory, interface=interface) 2.8 + l = tcp.listenTCP(port, factory, interface=interface) 2.9 + l.setCloExec()