summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2000-10-01 18:57:20 +0800
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-02 23:46:43 +0000
commita25cd2ee6b99a242cdfcaa83cd3ec5d6dc4845f7 (patch)
tree36af24b303a36022c4a1c7641a9d4f7fd389b736 /ext
parent9e24e6f2b219a10e33205f000bb65a4012b6f3ba (diff)
downloadperl-a25cd2ee6b99a242cdfcaa83cd3ec5d6dc4845f7.tar.gz
SOCK_DGRAM and listen() do not mix as reported in
Subject: [ID 20000930.001] Bug in perl 5.00503 IO::Socket Message-Id: <200010010257.KAA05735@localhost.localdomain> The patch for 5.7.0+ had to be reengineered, though. p4raw-id: //depot/perl@7113
Diffstat (limited to 'ext')
-rw-r--r--ext/IO/lib/IO/Socket/UNIX.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/IO/lib/IO/Socket/UNIX.pm b/ext/IO/lib/IO/Socket/UNIX.pm
index d083f48b78..2a11752d02 100644
--- a/ext/IO/lib/IO/Socket/UNIX.pm
+++ b/ext/IO/lib/IO/Socket/UNIX.pm
@@ -37,7 +37,7 @@ sub configure {
$sock->bind($addr) or
return undef;
}
- if(exists $arg->{Listen}) {
+ if(exists $arg->{Listen} && $type != SOCK_DGRAM) {
$sock->listen($arg->{Listen} || 5) or
return undef;
}