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

Don't write trailing nulls to pidfile #107

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

yabberyabber
Copy link
Collaborator

As written we would always write a 64 byte pidfile with dozens of null terminator characters (or even garbage characters from non-zeroed memory). With this change we only write the decimal PID, a newline, and a single null terminator.

As written we would always write a 64 byte pidfile with dozens of
null terminator characters (or even garbage characters from non-zeroed
memory). With this change we only write the decimal PID, a newline,
and a single null terminator.
@yabberyabber yabberyabber merged commit 219bca9 into aristanetworks:main Jan 10, 2025
2 of 3 checks passed
@yabberyabber yabberyabber deleted the pidfile-buffer branch January 10, 2025 21:36
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.

3 participants