Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not segfault on sending to closed socket
carlin++ for reporting the error.
The problem was that send() and write() tested $!PIO for truthness,
but a closed socket does not evaluate to False on JVM and Moar
  • Loading branch information
moritz committed Sep 10, 2014
1 parent d04b505 commit a09f17d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/IO/Socket.pm
Expand Up @@ -146,6 +146,7 @@ my role IO::Socket does IO {
#?endif
#?if !parrot
nqp::closefh($!PIO);
$!PIO := Mu;
True
#?endif
}
Expand Down

0 comments on commit a09f17d

Please sign in to comment.