Skip to content

Conversation

@steelman
Copy link

Do not skip the first sample for PID#1

The continue statement was introduced very early with commit 5da71e1 in the original reposiotory before bootchart was merged into systemd, when there was little code at the end of the while loop and apparently skipping it didn't hurt. Specifically commit 9b004a7 introduces still_runnig flag which is never set for PID#1 which makes it subject to garbage collection in garbage_collect_dead_processes().

Do not skip the first sample for PID#1

The continue statement was introduced very early with commit 5da71e1
in the original reposiotory before bootchart was merged into systemd,
when there was little code at the end of the while loop and apparently
skipping it didn't hurt. Specifically commit 9b004a7 introduces
still_runnig flag which is never set for PID#1 which makes it subject
to garbage collection in garbage_collect_dead_processes().
@bluca bluca merged commit a15bcaf into systemd:main Jan 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants