mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Merge pull request #87 from erderial/patch-5
Changed the Popen to skip the communication
This commit is contained in:
commit
167ef0ae33
@ -54,6 +54,7 @@ if options.log:
|
||||
logreader.replay_to_console(logname)
|
||||
sys.exit(0)
|
||||
#added functionality for wcons
|
||||
|
||||
if options.windowed:
|
||||
nodes = []
|
||||
sess = client.Command()
|
||||
@ -65,7 +66,8 @@ if options.windowed:
|
||||
nodes.append(node)
|
||||
for node in sortutil.natural_sort(nodes):
|
||||
sub = subprocess.Popen(['xterm', '-e', 'nodeconsole', node])
|
||||
out,err = sub.communicate()
|
||||
sys.exit(0)
|
||||
|
||||
#end of wcons
|
||||
if options.tile:
|
||||
null = open('/dev/null', 'w')
|
||||
|
Loading…
Reference in New Issue
Block a user