- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 5.7k
 
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorsystem:freebsdAffects only FreeBSDAffects only FreeBSD
Description
It seems #40783 broke one of the Sockets tests on FreeBSD 12:
julia/stdlib/Sockets/test/runtests.jl
Line 524 in 0224c42
| @test !isopen(P) # eof test should have closed this by now | 
Following along the steps taken in the tests,
p = Pipe()
Base.link_pipe!(p)
write(p, "hello")
read(p, Char)
read(p, Char)
@async begin
    write(p, "w")
    while p.out.status != Base.StatusOpen
        yield()
    end
    close(p.in)
end
readuntil(p, 'w')
eof(p)you'll get true from the final EOF check on any platform. However, p.out.status is Base.StatusEOF on FreeBSD with and Base.StatusClosed on macOS. Prior to #40783, p.out.status was Base.StatusClosed on both platforms.
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorsystem:freebsdAffects only FreeBSDAffects only FreeBSD