Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fd5c2fc

Browse files
committedMar 9, 2024
Properly kill subprocess
1 parent b1e3681 commit fd5c2fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎tools/config_editor/compile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ def compile_libs(self) -> None:
8787
def on_button_pressed(self, event: Button.Pressed) -> None:
8888
# Event handler called when a button is pressed
8989
if self.child_process:
90-
# Terminate the child process if it is running
90+
# Kill the child process if it is running
9191
print("Terminating child process")
92-
self.child_process.terminate()
92+
self.child_process.kill()
9393
self.child_process.wait()
94+
self.child_process = None
9495
self.dismiss()
9596

9697
@on(ScreenResume)

0 commit comments

Comments
 (0)
Please sign in to comment.