sshnet / sshnet/SSH.NET

Kill/Cancel process along with child processes

オープン
#486 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
C#
スター
4.4k
フォーク
993
平均マージ
9日 21時間
マージ済み PR(30日)
1

説明

Dear Devs,

How can I kill a process along with its child processes? I try with CancelAsync() or Disconnecting the SSH client object, but it won't work (only the original process is cancelled) and as far as I know, there is no way of getting the PID or the SID to try to kill them through other means.

Usually our shells scripts invoke other processes like JAVA/C/FAME that are not stopping when we kill the original shell script that invokes them.

Is there a workaround for this?

Thank you for your time,
Ioannis

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、CancelAsync() と SSH クライアントの切断がリモートシェルプロセスにどのような影響を与えるかを調べます。Java、C、または FAME を起動するシェルスクリプトで報告されたケースを再現し、次にキャンセルにそれらの子プロセスを含める方法を判断します。元のプロセスとその子プロセスが一緒に停止すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
networking
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。