Sign in

← Software

Kernel closefrom(3C) / close_range(2)

nameKernel closefrom(3C) / close_range(2)
recommendationinclude
in solnixno
categoryuserland
originillumos
kindkernel
summaryclosefrom becomes a kernel call and close_range(2) is added (Linux/FreeBSD-compatible), making fd cleanup before exec O(open fds) instead of a /proc walk.
whySpeeds every daemon and shell that closes fds before exec; helps nixpkgs portability.
upstream statusMerged to illumos-gate master after the Solnix pin (pin commit dated 2026-07-23; 244 commits since, through 2026-11-16). Commit 5400c85432 (18162), 2026-10-09.
effortsmall
riskNew syscall; nixpkgs software probing for close_range will start using it.
licenseCDDL-1.0
source urlhttps://github.com/illumos/illumos-gate/commit/5400c85432c0a689ecefb8c19b8f9861809ca093
sourceshttps://github.com/illumos/illumos-gate/commit/5400c85432c0a689ecefb8c19b8f9861809ca093
https://github.com/illumos/illumos-gate/tree/master/usr/src/man/man2/close_range.2

What Solnix has done

No decision yet: open for ranking.

Objections (0)

None.

Sign in to object to this item.