Skip to content

[linux] Fix missing parenthesis in lstat error message format#350

Merged
jiegec merged 1 commit intolsof-org:masterfrom
cuiweixie:bugfix/output
Mar 11, 2026
Merged

[linux] Fix missing parenthesis in lstat error message format#350
jiegec merged 1 commit intolsof-org:masterfrom
cuiweixie:bugfix/output

Conversation

@cuiweixie
Copy link
Contributor

No description provided.

@jiegec
Copy link
Member

jiegec commented Mar 10, 2026

Could you provide a process to reproduce the issue?

@cuiweixie
Copy link
Contributor Author

Could you provide a process to reproduce the issue?

python3 - <<'PY' &
import os, time
while True:
    r, w = os.pipe()
    os.close(r)
    os.close(w)
PY
pid=$!
while true; do
  out=$(./lsof -p "$pid" 2>/dev/null | rg 'lstat: ')
  if [ -n "$out" ]; then
    printf '%s\n' "$out"
    break
  fi
done
kill $pid

@jiegec jiegec merged commit efc6835 into lsof-org:master Mar 11, 2026
15 of 16 checks passed
@jiegec
Copy link
Member

jiegec commented Mar 11, 2026

Thanks! The bug can be reproduced and fixed.

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