Skip to content

darwin: print file type instead of fileport handle in error message - #405

Open
hja-oss wants to merge 1 commit into
lsof-org:masterfrom
hja-oss:fix/darwin-fileport-type-msg
Open

hja-oss wants to merge 1 commit into
lsof-org:masterfrom
hja-oss:fix/darwin-fileport-type-msg

Conversation

@hja-oss

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

Copy link
Copy Markdown
Contributor

In process_fileports(), the default case for unknown file types was
printing fpi->proc_fileport (the fileport handle) instead of
fpi->proc_fdtype (the actual file type enum). This produced misleading
output like "unknown file type: 4660" instead of the enum value.

Fixes a minor inconsistency with the parallel process_fds() function,
which correctly prints fdp->proc_fdtype.

In process_fileports(), the default case for unknown file types was
printing fpi->proc_fileport (the fileport handle) instead of
fpi->proc_fdtype (the actual file type enum). This produced misleading
output like "unknown file type: 4660" instead of the enum value.

Fixes a minor inconsistency with the parallel process_fds() function,
which correctly prints fdp->proc_fdtype.
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.

1 participant