Page MenuHomeFreeBSD

procstat binary: do not skip pid if either path or osrel sysctls failed
ClosedPublic

Authored by kib on Sun, Jun 7, 7:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 8, 6:31 PM
Unknown Object (File)
Mon, Jun 8, 1:52 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Sun, Jun 7, 7:32 AM
kib retitled this revision from procstat binary: do not skip pid if either path or osrel sysctls faile to procstat binary: do not skip pid if either path or osrel sysctls failed.
kib added reviewers: brooks, emaste.

So we'll still emit the warning from kern.proc.pathname, probably fine.

So we'll still emit the warning from kern.proc.pathname, probably fine.

You mean, remove the warning because we print '-' for such binaries, anyway?

I'm not completely sure what I think the behaviour should be (wrt the PR), but IMO regardless this change is an improvement.

This revision is now accepted and ready to land.Mon, Jun 8, 6:41 PM

You mean, remove the warning because we print '-' for such binaries, anyway?

Yeah, I think we can probably omit the warning in this case. But it doesn't matter much.

You mean, remove the warning because we print '-' for such binaries, anyway?

Yeah, I think we can probably omit the warning in this case. But it doesn't matter much.

In fact, it is somewhat inconvenient to do, since the warning is issued by libprocstat and not by the procstat. I think I postpone the warning removal.