Fix broken executor.py
This commit is contained in:
@@ -87,7 +87,6 @@ class Application(Gtk.Application):
|
|||||||
# when we migrate everything to use the ClanURI class we can use the full url as the ident
|
# when we migrate everything to use the ClanURI class we can use the full url as the ident
|
||||||
self.proc_manager.spawn(
|
self.proc_manager.spawn(
|
||||||
ident=url,
|
ident=url,
|
||||||
wait_stdin_con=False,
|
|
||||||
on_except=on_except,
|
on_except=on_except,
|
||||||
log_path=log_path,
|
log_path=log_path,
|
||||||
func=vms.run.run_vm,
|
func=vms.run.run_vm,
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ def _set_proc_name(name: str) -> None:
|
|||||||
def _init_proc(
|
def _init_proc(
|
||||||
func: Callable,
|
func: Callable,
|
||||||
out_file: Path,
|
out_file: Path,
|
||||||
wait_stdin_connect: bool,
|
|
||||||
proc_name: str,
|
proc_name: str,
|
||||||
on_except: Callable[[Exception, mp.process.BaseProcess], None],
|
on_except: Callable[[Exception, mp.process.BaseProcess], None],
|
||||||
**kwargs: Any,
|
**kwargs: Any,
|
||||||
@@ -82,7 +81,7 @@ def _init_proc(
|
|||||||
# Set the process name
|
# Set the process name
|
||||||
_set_proc_name(proc_name)
|
_set_proc_name(proc_name)
|
||||||
|
|
||||||
# Open stdin
|
# Close stdin
|
||||||
sys.stdin.close()
|
sys.stdin.close()
|
||||||
|
|
||||||
# Execute the main function
|
# Execute the main function
|
||||||
|
|||||||
Reference in New Issue
Block a user