forked from joyent/libuv
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in uv_pipe_bind where the lock file was unlinked prematurely.
Added a test to test-pipe-bind-error.c that covers the issue. Basically, since uv_flock_destroy gets called whenever uv_pipe_bind fails, only the first attempt to bind an already bound pipe would fail. Subsequent attempts would succeed. For now I've commented it out, but I think some cleanup still needs to happen (just not the unlinking when another process already holds the lock). I also moved some code out of uv_pipe_bind that was supposed to be in uv_pipe_cleanup.
- Loading branch information
Showing
2 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters