Skip to content

darwin: fix infinite retry when listing Darwin fileports - #406

Merged
jiegec merged 1 commit into
lsof-org:masterfrom
hja-oss:fix/darwin-fileport-buffer-growth
Nov 23, 2026
Merged

jiegec merged 1 commit into
lsof-org:masterfrom
hja-oss:fix/darwin-fileport-buffer-growth

Conversation

@hja-oss

@hja-oss hja-oss commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix a potential hang when a process’s fileport list changes while lsof is
sizing its buffer on macOS.

Previously, a full buffer could trigger a retry without increasing its
capacity. Ensure the buffer grows on every retry and leaves room for at
least one additional fileport.

@hja-oss hja-oss changed the title Fix infinite retry when listing Darwin fileports darwin: fix infinite retry when listing Darwin fileports Nov 22, 2026
@jiegec
jiegec merged commit 8d9c501 into lsof-org:master Nov 23, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants