mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-22 04:13:33 +01:00
Added waitpid in create_man
This commit is contained in:
parent
c36ad7725b
commit
867f8b41ed
@ -250,7 +250,7 @@ command_line = CommandLine()
|
|||||||
def print_options():
|
def print_options():
|
||||||
keys = options.keys()
|
keys = options.keys()
|
||||||
keys.sort()
|
keys.sort()
|
||||||
import subprocess, threading
|
import subprocess
|
||||||
for k in keys:
|
for k in keys:
|
||||||
description = options[k][1]
|
description = options[k][1]
|
||||||
p1 = subprocess.Popen(["fold", "-s", "-w", "40"],stdout=subprocess.PIPE,stdin=subprocess.PIPE)
|
p1 = subprocess.Popen(["fold", "-s", "-w", "40"],stdout=subprocess.PIPE,stdin=subprocess.PIPE)
|
||||||
|
@ -139,14 +139,16 @@ def do_print_subroutines(sub):
|
|||||||
def run():
|
def run():
|
||||||
import parsed_text
|
import parsed_text
|
||||||
import os,sys
|
import os,sys
|
||||||
if os.fork() == 0:
|
pid1 = os.fork()
|
||||||
|
if pid1 == 0:
|
||||||
for v in variables.values():
|
for v in variables.values():
|
||||||
do_print(v)
|
do_print(v)
|
||||||
for s in subroutines.values():
|
for s in subroutines.values():
|
||||||
do_print_subroutines(s)
|
do_print_subroutines(s)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if os.fork() == 0:
|
pid2 = os.fork()
|
||||||
|
if pid2 == 0:
|
||||||
tags = []
|
tags = []
|
||||||
l = variables.keys()
|
l = variables.keys()
|
||||||
file = open("irpf90_entities","w")
|
file = open("irpf90_entities","w")
|
||||||
@ -169,6 +171,9 @@ def run():
|
|||||||
file.close()
|
file.close()
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
os.waitpid(pid1,0)
|
||||||
|
os.waitpid(pid2,0)
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
run()
|
run()
|
||||||
|
@ -100,7 +100,6 @@ def dimsize(x):
|
|||||||
buffer = x.split(':')
|
buffer = x.split(':')
|
||||||
if len(buffer) == 1:
|
if len(buffer) == 1:
|
||||||
return x
|
return x
|
||||||
buffer = map(strip,buffer)
|
|
||||||
else:
|
else:
|
||||||
assert len(buffer) == 2
|
assert len(buffer) == 2
|
||||||
size = ""
|
size = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user