2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

changed subprocess .run to Popen

changed subprocess .run to Popen to open separate subprocesses for simultaneous run of console windows.
This commit is contained in:
erderial 2022-10-12 22:35:05 +03:00 committed by GitHub
parent 23ec46bb8b
commit dc62fc3f51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,8 @@ if options.windowed:
sys.exit(1)
nodes.append(node)
for node in sortutil.natural_sort(nodes):
subprocess.call(['xterm', '-e', 'nodeconsole', node])
sub = subprocess.Popen(['xterm', '-e', 'nodeconsole', node])
out,err = sub.communicate()
#end of wcons
if options.tile:
null = open('/dev/null', 'w')