Please sign in to comment.
Change behaviour of uv_flock_destroy and uv_flock_release.
Move the unlink call out of uv_flock_destroy and into uv_flock_release (which was apparently unused originally), so that uv_flock_destroy only closes any open file descriptors and frees memory. Then, in uv_pipe_bind, on error, call uv_flock_destroy, but release the lock only if the lock isn't held by another process. In uv_pipe_cleanup, do both.
- Loading branch information...