We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ef8720 commit a3f3589Copy full SHA for a3f3589
base/stream.jl
@@ -1263,14 +1263,8 @@ end
1263
function (f::RedirectStdStream)(::DevNull)
1264
nulldev = @static Sys.iswindows() ? "NUL" : "/dev/null"
1265
handle = open(nulldev, write=f.writable)
1266
- _redirect_io_libc(handle, f.unix_fd)
1267
- c_sym = f.unix_fd == 0 ? cglobal(:jl_uv_stdin, Ptr{Cvoid}) :
1268
- f.unix_fd == 1 ? cglobal(:jl_uv_stdout, Ptr{Cvoid}) :
1269
- f.unix_fd == 2 ? cglobal(:jl_uv_stderr, Ptr{Cvoid}) :
1270
- C_NULL
1271
- c_sym == C_NULL || unsafe_store!(c_sym, handle.handle)
+ f(handle)
1272
close(handle) # handle has been dup'ed in _redirect_io_libc
1273
- _redirect_io_global(devnull, f.unix_fd)
1274
return devnull
1275
end
1276
function (f::RedirectStdStream)(io::AbstractPipe)
0 commit comments