Removing setsid for the moment - breaks shutdown.

Close to solving this set of problems.
This commit is contained in:
Bob Lantz
2010-03-13 16:37:13 -08:00
parent e953444fa5
commit d4b53ea73d
+1 -2
View File
@@ -66,9 +66,8 @@ class Node( object ):
defaultIP: default IP address for intf 0""" defaultIP: default IP address for intf 0"""
self.name = name self.name = name
closeFds = False # speed vs. memory use closeFds = False # speed vs. memory use
# setsid is necessary to detach from tty
# xpg_echo is needed so we can echo our sentinel in sendCmd # xpg_echo is needed so we can echo our sentinel in sendCmd
cmd = [ '/usr/bin/setsid', '/bin/bash', '-O', 'xpg_echo' ] cmd = [ '/bin/bash', '-O', 'xpg_echo' ]
self.inNamespace = inNamespace self.inNamespace = inNamespace
if self.inNamespace: if self.inNamespace:
cmd = [ 'netns' ] + cmd cmd = [ 'netns' ] + cmd