[PATCH] select for UNIX sockets - 2.4 and 2.5

From: Krzysztof Halasa (khc@pm.waw.pl)
Date: Sat Jun 14 2003 - 10:29:43 EST


The attached patches aims to fix select(write) on connect()ed UNIX
datagram sockets. Without this patch, such select() is basically a NOP
i.e. it returns immediately indicating a datagram can be written.

As I don't know this part of the kernel very well I'd appreciate it if
you who know it better check the patch for correctness.

A simple test program is attached as well.

This patch doesn't fix select(write) on unconnect()ed sockets as there
is no obvious way to check for socket state.

Krzysztof Halasa
Network Administrator

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

This archive was generated by hypermail 2b29 : Sun Jun 15 2003 - 22:00:40 EST