Page MenuHomeFreeBSD

Limit descriptors in pidfile
ClosedPublic

Authored by oshogbo on Jul 26 2017, 6:58 PM.
Tags
None
Referenced Files
F106685971: D11741.id31880.diff
Fri, Jan 3, 8:35 PM
Unknown Object (File)
Mon, Dec 23, 3:44 AM
Unknown Object (File)
Sun, Dec 22, 10:47 PM
Unknown Object (File)
Dec 2 2024, 8:03 PM
Unknown Object (File)
Nov 29 2024, 7:43 AM
Unknown Object (File)
Nov 25 2024, 11:21 AM
Unknown Object (File)
Nov 24 2024, 3:35 PM
Unknown Object (File)
Nov 24 2024, 1:43 AM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

oshogbo edited the summary of this revision. (Show Details)
lib/libutil/pidfile.c
33 ↗(On Diff #31223)

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

193 ↗(On Diff #31223)

Why do we need CAP_SEEK?

oshogbo marked an inline comment as done.
oshogbo added inline comments.
lib/libutil/pidfile.c
193 ↗(On Diff #31223)

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.