Ghidra is a software reverse engineering (SRE) framework
Propagate PyGhidra console subprocess exit status
lzhMeowcf61e28f5b8c
diff --git a/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py b/Ghidra/Features/PyGhidra/support/pyghidra_launcher.pyindex b5d3371103..a4988b6c2a 100644--- a/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py+++ b/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py@@ -318,7 +318,7 @@ def main() -> None:else:py_args += ['pyghidra', '-g', '--install-dir', str(install_dir)]if args.console:- subprocess.call(py_args + remaining)+ sys.exit(subprocess.call(py_args + remaining))else:creation_flags = getattr(subprocess, 'CREATE_NO_WINDOW', 0)subprocess.Popen(py_args + remaining, creationflags=creation_flags, stdout=DEVNULL, stderr=DEVNULL)