Right, I get it, good catch.


On Sat, May 11, 2013 at 7:57 PM, Jameson Nash <notifications@github.com>wrote:

> In src/jl_uv.c:
>
> > @@ -290,7 +296,25 @@ DLLEXPORT void jl_close_uv(uv_handle_t *handle)
> >         return;
> >      if (handle->type==UV_TTY)
> >          uv_tty_set_mode((uv_tty_t*)handle,0);
> > -    uv_close(handle,&closeHandle);
> > +
> > +    if (uv_is_writable((uv_stream_t*)handle) && // uv_shutdown returns an error if not writable
>
> On windows, the is_writable attribute is removed by the call to
> uv_shutdown, but we don't want to jump to calling uv_close via the else
> clause if the shutdown call is repeated
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/JuliaLang/julia/pull/3084/files#r4184516>
> .
>