2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-26 20:33:30 +00:00
restic/internal/backend/sftp
Alexander Neumann 05958caf6e sftp: Prompt for password, don't terminate on SIGINT
This is a follow-up on fb9729fdb9, 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.
2018-01-17 23:02:47 +01:00
..
config_test.go Moves files 2017-07-23 14:19:13 +02:00
config.go sftp: Return error when path starts with a tilde (~) 2017-09-30 10:34:23 +02:00
doc.go Moves files 2017-07-23 14:19:13 +02:00
foreground_unix.go sftp: Prompt for password, don't terminate on SIGINT 2018-01-17 23:02:47 +01:00
foreground_windows.go sftp: Prompt for password, don't terminate on SIGINT 2018-01-17 23:02:47 +01:00
layout_test.go Remove all dot-imports 2017-10-02 15:06:39 +02:00
sftp_test.go Remove all dot-imports 2017-10-02 15:06:39 +02:00
sftp.go sftp: Prompt for password, don't terminate on SIGINT 2018-01-17 23:02:47 +01:00
split_test.go Moves files 2017-07-23 14:19:13 +02:00
split.go Run goimports 2017-07-23 14:21:03 +02:00
sshcmd_test.go Moves files 2017-07-23 14:19:13 +02:00