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

Replace null characters with whitespaces in command lines #153

Merged
merged 1 commit into from
Feb 6, 2022

Conversation

sj-i
Copy link
Member

@sj-i sj-i commented Feb 6, 2022

In linux / unix environments, command lines are parsed by the shell and used to launch the process with its argument list broken down into null terminated strings.

When reading the command line from procfs, the null character is also used to separate each argv[i].

Since this is inconvenient for searching processes, I decided to replace the null character with a whitespace character when readling the command line.

In linux / unix environments, command lines are parsed by the shell and used to launch the process with its argument list broken down into null terminated strings.

When reading the command line from procfs, the null character is also used to separate each argv[i].

Since this is inconvenient for searching processes, I decided to replace the null character with a whitespace character when readling the command line.
@sj-i sj-i added this to the 0.4.0 milestone Feb 6, 2022
@sj-i sj-i merged commit 5613c30 into 0.4.x Feb 6, 2022
@sj-i sj-i deleted the fix-arguments-separator branch February 6, 2022 21:32
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.

None yet

1 participant