Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkill command works unreliably (moved from save-cli) #8

Open
sanyavertolet opened this issue Apr 12, 2023 · 1 comment
Open

pkill command works unreliably (moved from save-cli) #8

sanyavertolet opened this issue Apr 12, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sanyavertolet
Copy link
Member

Original issue: saveourtool/save-cli#338

@sanyavertolet sanyavertolet added the bug Something isn't working label Apr 12, 2023
@sanyavertolet sanyavertolet self-assigned this Apr 12, 2023
@sanyavertolet sanyavertolet changed the title pkill command works unreliably pkill command works unreliably (moved from save-cli) Apr 12, 2023
@0x6675636b796f75676974687562
Copy link
Member

0x6675636b796f75676974687562 commented Apr 12, 2023

  • On JVM (Java 9+), you can use ProcessHandle.destroy
  • Be sure to kill not only the process but also its children
  • In K/N on UNIX, you can indeed run kill (not pkill -- that's too broad) with SIGTERM followed with SIGKILL after a time-out
  • In K/N on Windows, you can rely on pskill.exe from SysInternals or taskkill.exe, available in modern Windows versions. .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants