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

RunawayProcessKillerExtension can lead to failed startup via Access denied #1086

Open
DrZ7 opened this issue May 8, 2024 · 1 comment
Open
Labels

Comments

@DrZ7
Copy link

DrZ7 commented May 8, 2024

If PID now belongs to a secured service, an exception is thrown, preventing a startup.

System.ComponentModel.Win32Exception (0x80004005): Access is denied
at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited)
at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
at System.Diagnostics.Process.OpenProcessHandle(Int32 access)
at System.Diagnostics.Process.get_Handle()
at WinSW.Plugins.RunawayProcessKillerExtension.OnWrapperStarted()

Environment

  • WinSW version: 2.11.0

Possible Solution

Catch exception without stopping?

@DrZ7 DrZ7 added the bug label May 8, 2024
@DrZ7
Copy link
Author

DrZ7 commented May 8, 2024

related: #744

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant