Skip to content

Debugging filesystem operations #1657

Answered by rkhoury
rkhoury asked this question in General
Aug 15, 2020 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

OK! I figured out the offending bit of code. It looks like the check for path_equals({d}ent, stdout) is actually creating an open handle for the directory entry, and this check is done before the check to see if a path should be ignored. So I rearranged this in two places in walk.rs and now ripgrep from within fzf appears to operate as expected. Is this a valid solution (should I create a pull request for this change)?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BurntSushi
Comment options

@rkhoury
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants