-
-
Notifications
You must be signed in to change notification settings - Fork 837
Closed
Labels
Description
subprocess.Popen(args.paths, stdout=subprocess.PIPE, preexec_fn=None if is_win32 else ignore_sigint)
On Linux, the preexec_fn is used to ignore SIGINT in the created subprocess.
This is important so that a user pressing Ctrl-C does not kill the subprocesses of borg (like ssh or tar). These must run until they naturally end and the borg main process needs them to shutdown cleanly.
On Windows, there is no preexec_fn, so the shown code line leads to a slightly misbehaved Ctrl-C there.
Is there an alternative way to deal with this on windows?
Reactions are currently unavailable