Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when sorting files in a directory #1204

Merged
merged 1 commit into from Apr 9, 2023
Merged

Fix crash when sorting files in a directory #1204

merged 1 commit into from Apr 9, 2023

Conversation

joelim-work
Copy link
Collaborator

Fixes #1200
Fixes #502

Sorting a directory in a separate goroutine without making a copy can cause lf to crash under some circumstances. This can happen either when the main goroutine also sorts the directory, on when the code is invoked twice so that two goroutines sort the same directory.

@gokcehan
Copy link
Owner

gokcehan commented Apr 9, 2023

@joelim-work Thanks a lot for the patch.

@gokcehan gokcehan merged commit 821b2fc into gokcehan:master Apr 9, 2023
3 checks passed
@joelim-work joelim-work deleted the dir-sort-crash branch April 10, 2023 00:30
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.

Potential crash when sorting files in a directory Some random crashes
2 participants