Skip to content

Child processes is NOT killed on disconnect #1751

@goranschwarz

Description

@goranschwarz

"OpenSSH for Windows" version
7.7.2.3

Server OperatingSystem
Windows 10 Pro (just for testing)

Client OperatingSystem
Any ssh client, Linux or Windows

What is failing
When disconnecting (killing the client) from the SSH Server, the process continues to execute on the server side

Expected output
(on Linux) Processes stared by the server process (sshd) will be terminated on the server side when a connection is lost

Actual output
The started process (in this case typeperf ...) is continuing to run (causing many server processes, since the client connection (which actually is a monitor server), just reconnects and issues the same command again)

repro example

  • open a "dos prompt" on the local machine (cmd)
  • ssh [email protected] typeperf -si 3 "\Processor(*)\*"
  • then kill the "dos prompt" by clicking the "x" to kill/close the window
  • Task manager still shows that the typeperf -si 3 ... is running

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions