Skip to content

Commit

Permalink
use Filesystem.File for STDIO
Browse files Browse the repository at this point in the history
  • Loading branch information
samoconnor committed Jan 13, 2016
1 parent a7aed24 commit f1e841e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions base/stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,7 @@ disassociate_julia_struct(handle::Ptr{Void}) =
function init_stdio(handle::Ptr{Void})
t = ccall(:jl_uv_handle_type, Int32, (Ptr{Void},), handle)
if t == UV_FILE
return fdio(ccall(:jl_uv_file_handle, Int32, (Ptr{Void},), handle))
# Replace ios.c file with libuv file?
# return File(RawFD(ccall(:jl_uv_file_handle,Int32,(Ptr{Void},),handle)))
return File(RawFD(ccall(:jl_uv_file_handle,Int32,(Ptr{Void},),handle)))
else
if t == UV_TTY
ret = TTY(handle)
Expand Down

0 comments on commit f1e841e

Please sign in to comment.