Skip to content

Should run mark streams as not-writable after using them? #49233

Closed
@ericphanson

Description

@ericphanson
julia> io=IOBuffer()
IOBuffer(data=UInt8[...], readable=true, writable=true, seekable=true, append=false, size=0, maxsize=Inf, ptr=1, mark=-1)

julia> iswritable(io)
true

julia> isopen(io)
true

julia> run(pipeline(`echo "hi"`, stdout=io))
Process(`echo hi`, ProcessExited(0))

julia> iswritable(io) # this is the interesting part
false

julia> isopen(io)
true

came up in JuliaLang/Pkg.jl#3430 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ioInvolving the I/O subsystem: libuv, read, write, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions