mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
adjusted daemon process starting
This commit is contained in:
parent
a48c7f08f1
commit
3e19428beb
1 changed files with 3 additions and 8 deletions
|
@ -108,12 +108,6 @@ class DAEMON:
|
|||
else:
|
||||
Daemon.rigctldstarted = False
|
||||
|
||||
#try:
|
||||
# outs, errs = proc.communicate(timeout=15)
|
||||
#except TimeoutExpired:
|
||||
# proc.kill()
|
||||
# outs, errs = proc.communicate()
|
||||
|
||||
|
||||
def update_audio_devices(self):
|
||||
"""
|
||||
|
@ -412,9 +406,10 @@ class DAEMON:
|
|||
self.log.info("[DMN] starting rigctld: ", param=command)
|
||||
|
||||
if not isWin:
|
||||
# NOTE --> It seems Popen is non blocking, while run is blocking
|
||||
#proc = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
|
||||
#proc = subprocess.Popen(command)
|
||||
proc = subprocess.run(command, shell=False, check=True, text=True, capture_output=True)
|
||||
proc = subprocess.Popen(command)
|
||||
#proc = subprocess.run(command, shell=False, check=True, text=True, capture_output=True)
|
||||
else:
|
||||
#On windows, open rigctld in new window for easier troubleshooting
|
||||
proc = subprocess.Popen(command, creationflags=subprocess.CREATE_NEW_CONSOLE,close_fds=True)
|
||||
|
|
Loading…
Reference in a new issue