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

Add processHandleOfPid to KiwiEnvironment #943

Closed
sleberknight opened this issue Apr 17, 2023 · 0 comments · Fixed by #951
Closed

Add processHandleOfPid to KiwiEnvironment #943

sleberknight opened this issue Apr 17, 2023 · 0 comments · Fixed by #951
Assignees
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Milestone

Comments

@sleberknight
Copy link
Member

This complements the currentProcessHandle() method added in #919 to allow mocking out a ProcessHandle for a specific pid.

The method signature in KiwiEnvironment should be:

Optional<ProcessHandle> processHandleOfPid(long pid)

And the implementation in DefaultEnvironment can simply call the ProcessHandle.of(pid) method.

This originated from discussion #685 (Proposed KiwiEnvironment enhancements)

@sleberknight sleberknight added enhancement A request for change or improvement to an existing feature new feature A new feature such as a new class, method, package, group of classes, etc. and removed enhancement A request for change or improvement to an existing feature labels Apr 17, 2023
@sleberknight sleberknight self-assigned this Apr 22, 2023
@sleberknight sleberknight added this to the 2.6.0 milestone Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant