mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-12-22 21:37:09 +00:00
Changed Process to throw on correct error code
This commit is contained in:
@@ -247,7 +247,7 @@ void ProcessImpl::killImpl(PIDImpl pid)
|
||||
{
|
||||
case ERROR_ACCESS_DENIED:
|
||||
throw NoPermissionException("cannot kill process");
|
||||
case ERROR_NOT_FOUND:
|
||||
case ERROR_INVALID_PARAMETER:
|
||||
throw NotFoundException("cannot kill process");
|
||||
default:
|
||||
throw SystemException("cannot kill process");
|
||||
|
||||
Reference in New Issue
Block a user