mirror of
https://github.com/octoleo/restic.git
synced 2025-01-22 14:48:24 +00:00
05958caf6e
This is a follow-up on fb9729fdb9bf1e15dc6c90383df85a8968f6ddb0, which runs the `ssh` in its own process group and selects that process group as the foreground group. After the sftp connection is established, restic switches back to the previous foreground process group. This allows `ssh` to prompt for the password, but it won't receive the interrupt signal (SIGINT, ^C) later on, because it is not in the foreground process group any more, allowing a clean tear down.