Kill/Cancel process along with child processes
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 993
- Avg merge
- 9d 21h
- Merged PRs (30d)
- 1
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining how CancelAsync() and disconnecting the SSH client affect a remote shell process. Reproduce the reported case with a shell script that launches Java, C, or FAME, then determine how cancellation could include those child processes. Done means the original process and its children stop together.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100