Page MenuHomeFreeBSD

kdump: nicer printing of kill(2) PID argument
ClosedPublic

Authored by kevans on May 24 2025, 4:14 AM.
Tags
None
Referenced Files
F165340054: D50508.diff
Fri, Aug 7, 5:48 PM
Unknown Object (File)
Thu, Aug 6, 11:40 AM
Unknown Object (File)
Tue, Aug 4, 8:36 AM
Unknown Object (File)
Tue, Aug 4, 3:35 AM
Unknown Object (File)
Mon, Aug 3, 9:06 AM
Unknown Object (File)
Mon, Aug 3, 6:25 AM
Unknown Object (File)
Thu, Jul 30, 12:29 AM
Unknown Object (File)
Tue, Jul 28, 10:31 AM
Subscribers

Details

Summary

Similar to wait*(), kill(2) operates on a pid that currently gets output
as hex. Output it in decimal to make it a little easier to eyeball the
pid we're signalling.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 64405
Build 61289: arc lint + arc unit

Event Timeline

usr.bin/kdump/kdump.c
1049

What exactly does this assignment do? Do we handle negative PID arguments correctly here?

usr.bin/kdump/kdump.c
1049

Forces the sign extension that I tried to manually hand-roll in wait4 so that it gets interpreted correctly.

This revision is now accepted and ready to land.May 24 2025, 1:48 PM
This revision was automatically updated to reflect the committed changes.