Hi,
Below is the patch I mentioned at UKUUG, its against an older kernel but
it still applies when I tried it against 2.6.12 just now,
Steve.
-----------------------------------------------------------------------------
Signed-off-by: Steven Whitehouse <[EMAIL PROTECTED]>
diff -Nru linux-2.6.11-rc3/net/decnet/af_decnet.c linux/net/decnet/af_decnet.c
--- linux-2.6.11-rc3/net/decnet/af_decnet.c 2005-02-07 21:46:32.000000000
+0000
+++ linux/net/decnet/af_decnet.c 2005-02-07 21:50:04.000000000 +0000
@@ -1876,15 +1876,6 @@
return mss_now;
}
-static int dn_error(struct sock *sk, int flags, int err)
-{
- if (err == -EPIPE)
- err = sock_error(sk) ? : -EPIPE;
- if (err == -EPIPE && !(flags & MSG_NOSIGNAL))
- send_sig(SIGPIPE, current, 0);
- return err;
-}
-
static int dn_sendmsg(struct kiocb *iocb, struct socket *sock,
struct msghdr *msg, size_t size)
{
@@ -2045,7 +2036,7 @@
return sent ? sent : err;
out_err:
- err = dn_error(sk, flags, err);
+ err = sk_stream_error(sk, flags, err);
release_sock(sk);
return err;
}
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html