HomeFreeBSD

timeout: Clean up

Description

timeout: Clean up

  • Annotate logv() and fix format string bug.
  • Don't reinvent str2sig(3).
  • Reorganize kill_self() so we unblock signals as late as possible, and use raise(2) instead of kill(2).
  • Explicitly close unused pipe descriptors.
  • Use correct type to collect result of read(2) and write(2).
  • Compare return values to 0, not -1.
  • Sort local variables according to style(9).
  • Reduce unnecessary nesting.
  • Reindent.
  • Fix typo in manual page.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D55277

Details

Provenance
desAuthored on Feb 13 2026, 8:18 PM
Reviewer
kevans
Differential Revision
D55277: timeout: Clean up
Parents
rGb2532432971f: diff: Tweak recursion tests
Branches
Unknown
Tags
Unknown