[perl-5.6.x, perl-current] accept for EPOC
Olaf Flebbe [Sat, 3 Mar 2001 16:36:04 +0000 (17:36 +0100)]
Message-ID: <Pine.LNX.4.02.10103031635190.4825-100000@milkyway.science-computing.de>

p4raw-id: //depot/perl@9002

pp_sys.c

index 31f6fa5..5179e0b 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2440,7 +2440,8 @@ PP(pp_accept)
 #endif
 
 #ifdef EPOC
-    len = sizeof saddr;  /* EPOC somehow truncates info */
+    len = sizeof saddr;          /* EPOC somehow truncates info */
+    setbuf( IoIFP(nstio), NULL); /* EPOC gets confused about sockets */
 #endif
 
     PUSHp((char *)&saddr, len);