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

Simplify a bit stock_process_id #24

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

EXtremeExploit
Copy link
Collaborator

Currently the warning for when different PIDs are found wasnt really displaying, as it was immediately getting cleared.
Also fixes the bug where the warning itself wasnt even working correctly as pgrep never outputs a spacebar, it prints newlines at the end of every pid, as strcspn returns the string's length, it would never even get a hit in the first place!

The function is a bit more simplified now in my opinion, its also shorter and easier to understand whats happening

Copy link
Owner

@wins1ey wins1ey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'll merge this.

@wins1ey wins1ey merged commit 1375ffc into wins1ey:main Mar 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants