replace get_ppid, check_parent_sshd. Add find_in_first_print_second#576
Open
antalk2 wants to merge 4 commits into
Open
replace get_ppid, check_parent_sshd. Add find_in_first_print_second#576antalk2 wants to merge 4 commits into
antalk2 wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#572
Matching in
awk '$1 ~ /'${1:-}'/ { SUM += $2 } END { print SUM } 'was wrong in both
get_ppidandcheck_parent_sshd.It would match a pid 13 (in stdin) to a pid 1 in the query.
The
SUM += $2incheck_parent_sshdtried to sum a text field.Replaced with checkin equality and just printing
$2,in
find_in_first_print_second()check_parent_sshd()only checked the direct parent being"sshd"Changed to also check parent of parent, etc.