> Disclaimer: I noticed that Socket.lhs didn't change from 4.08.2.
> 
> However, while Socket.listen works on 4.08.2, it *blocks* with ghc5.
> The listening socket isn't even visible by netstat -an!
> A Linux-strace looks like this:
> 
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4
> fcntl(4, F_GETFL)                       = 0x2 (flags O_RDWR)
> fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
> setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
> --- SIGVTALRM (Virtual timer expired) ---
> sigreturn()                             = ? (mask now [])
> [SIGVTALRM ad libitum, nothing else happens]
> 
> Does somebody have any thoughts about what's happening here?

We've fixed this bug; 5.00.1 will have the fix.  (see revision 1.22 of
fptools/hslibs/net/SocketPrim.lhs for the patch).

Cheers,
        Simon

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to