Try to combine all the processes to there aren't orphans.
This commit is contained in:
parent
8d94794c90
commit
b0f0a4f8dc
|
@ -139,7 +139,10 @@ log_folder = config['Settings']['log_folder']
|
||||||
|
|
||||||
# Start subprocess to watch KISS connection
|
# Start subprocess to watch KISS connection
|
||||||
import subprocess
|
import subprocess
|
||||||
subprocess.Popen(["python3","kiss_and_db.py"])
|
#proc = subprocess.Popen(["python3","kiss_and_db.py"])
|
||||||
|
# Combine under one process https://stackoverflow.com/a/13143013/2152245
|
||||||
|
proc = subprocess.Popen("exec " + "python3 kiss_and_db.py", stdout=subprocess.PIPE, shell=True)
|
||||||
|
print("kiss_and_db.py as subprocess pid "+str(proc.pid))
|
||||||
|
|
||||||
api.add_resource(Packets, '/packets')
|
api.add_resource(Packets, '/packets')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user