Re: named getting stuck in tcp_close (2.2.5-ac1, 2.2.6-ac1-ank1)

kuznet@ms2.inr.ac.ru
Fri, 7 May 1999 22:02:34 +0400 (MSK DST)


Hello!

> #ifdef SO_LINGER /* XXX */
> /* kernels that map pages for IO end up failing if the pipe is full
> * at exit and we take away the final buffer. this is really a kernel
> * bug but it's harmless on systems that are not broken, so...
> */
> setsockopt(qs->s_rfd, SOL_SOCKET, SO_LINGER, (char *)&ll, sizeof ll);
> #endif
> return (0);
> }
>
>
>
> The setsockopt() call and comment above looks a bit suspicious. :)

Yes, this piece of shit was present in 4.9.x too, but was called
only when XFERring zone after forking, so that lockup was harmless.

Alexey

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