Page MenuHomeFreeBSD

Limit descriptors in pidfile
ClosedPublic

Authored by oshogbo on Jul 26 2017, 6:58 PM.
Tags
None
Referenced Files
F147335946: D11741.id31880.diff
Tue, Mar 10, 2:37 AM
Unknown Object (File)
Thu, Mar 5, 12:59 PM
Unknown Object (File)
Tue, Feb 24, 1:10 PM
Unknown Object (File)
Wed, Feb 18, 1:05 AM
Unknown Object (File)
Tue, Feb 17, 3:38 PM
Unknown Object (File)
Sun, Feb 8, 8:45 AM
Unknown Object (File)
Sun, Feb 8, 3:28 AM
Unknown Object (File)
Feb 7 2026, 5:21 PM
Subscribers
None

Details

Summary

As suggested by markj@ limit descriptors hidden in pidfile.

This review is depending on:
https://reviews.freebsd.org/D11690
https://reviews.freebsd.org/D11692

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

oshogbo edited the summary of this revision. (Show Details)
lib/libutil/pidfile.c
34

This should come before file.h to maintain a sorted order.

193

Why do we need CAP_SEEK?

oshogbo marked an inline comment as done.
oshogbo added inline comments.
lib/libutil/pidfile.c
193

kern_pwritev as us to do so, but insted of CAP_SEEK and CAP_WRITE we can use just CAP_PWRITE which is equvilant.

This revision is now accepted and ready to land.Jul 26 2017, 8:30 PM

Style nit: braces seem excessive. Otherwise looks good to me.

This revision was automatically updated to reflect the committed changes.