mirror of
https://github.com/Gu1llaum-3/sshm.git
synced 2026-03-14 03:41:27 +01:00
When running `sshm <host>`, the sshm process was staying alive as a parent for the entire SSH session. History is recorded before SSH starts, so the parent process served no purpose. Use syscall.Exec() to replace the sshm process in-place with ssh, keeping the same PID. Falls back to exec.Command() on Windows where syscall.Exec is not supported.
7.0 KiB
7.0 KiB