Re: Notebooks

Andi Kleen (ak@muc.de)
Wed, 19 Aug 1998 19:56:21 +0200


On Wed, Aug 19, 1998 at 08:05:08PM +0200, Alan Cox wrote:
> > /* Socket is locked, keep trying until memory is available. */
> > do {
> > skb = sock_wmalloc(sk,
> > (MAX_HEADER +
> > sk->prot->max_header),
> > 1, GFP_KERNEL);
> > } while (skb == NULL);
> >
>
> Shouldn't the FIN allocation/send be pushed to a timer in this case, try
> every second until success ?

Depends on the SO_LINGER settings I guess.

BTW, it seems the SO_LINGER code is broken in 2.1 (only code that looks
at sk->lingertime is inet_release, and the only thing it does with it is
to assign it to a dead variable which is probably optimized away from gcc)

Does anyone use SO_LINGER?

-Andi

-
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.altern.org/andrebalsa/doc/lkml-faq.html