Add grace period to kill_childs() call

This commit is contained in:
Orsiris de Jong 2023-12-28 18:02:30 +01:00
parent 68ace1820b
commit a74a4dc979
2 changed files with 2 additions and 2 deletions

View file

@ -329,7 +329,7 @@ def main():
# kill_childs normally would not be necessary, but let's just be foolproof here (kills restic subprocess in all cases)
atexit.register(
kill_childs,
os.getpid(),
os.getpid(), grace_period=30
)
try:
cli_interface()

View file

@ -724,7 +724,7 @@ def main_gui(viewer_mode=False):
# kill_childs normally would not be necessary, but let's just be foolproof here (kills restic subprocess in all cases)
atexit.register(
kill_childs,
os.getpid(),
os.getpid(), grace_period = 30
)
try:
_main_gui(viewer_mode=viewer_mode)