mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-24 22:44:04 +08:00
Add grace period to kill_childs() call
This commit is contained in:
parent
68ace1820b
commit
a74a4dc979
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue