jart / jart/pledge

FDs > 100 no longer closed due to removal of `closefrom(3)`

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
143
Forks
7
PR merge metrics
No merged PRs in 30d

Description

See comment here: https://github.com/jart/pledge/commit/eb7cc789a3f2ab0fab24f1daf06fd21b61318605#r176532424

(Looks like Github is bugged: It only scrolls to my comment when you open the link in a new tab; if you just click it, it just shows the top of the diff.)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked commit and its referenced review comment to understand the removed closefrom(3) behavior. Trace the file-descriptor closing path and reproduce the issue with descriptors above 100. Done means descriptors above 100 are closed again without regressing lower-numbered descriptors.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.