From: kuznet@ms2.inr.ac.ru
To: alan@lxorguk.UKuu.ORG.UK (Alan Cox), davem@redhat.com (Dave Miller)
Cc: linux-kernel@vger.kernel.org
Subject: Re: AF_UNIX hangs
Date: Thu, 1 Feb 2001 22:49:56 +0300 (MSK) [thread overview]
Message-ID: <200102011949.WAA21764@ms2.inr.ac.ru> (raw)
In-Reply-To: <E14OOp7-0004rR-00@the-village.bc.nu> from "Alan Cox" at Feb 1, 1 10:15:01 pm
Hello!
> Looking at net/core/datagram.c:wait_for_packet the code will return 0
Yep... Damn, specially split errno and ready values and forgot to use
this. 8) Sorry.
Alexey
--- ../vger3-010130/linux/net/core/datagram.c Thu Dec 28 22:44:08 2000
+++ linux/net/core/datagram.c Thu Feb 1 22:45:47 2001
@@ -73,19 +73,19 @@
/* Socket errors? */
error = sock_error(sk);
if (error)
- goto out;
+ goto out_err;
if (!skb_queue_empty(&sk->receive_queue))
goto ready;
/* Socket shut down? */
if (sk->shutdown & RCV_SHUTDOWN)
- goto out;
+ goto out_noerr;
/* Sequenced packets can come disconnected. If so we report the problem */
error = -ENOTCONN;
if(connection_based(sk) && !(sk->state==TCP_ESTABLISHED || sk->state==TCP_LISTEN))
- goto out;
+ goto out_err;
/* handle signals */
if (signal_pending(current))
@@ -100,11 +100,16 @@
interrupted:
error = sock_intr_errno(*timeo_p);
+out_err:
+ *err = error;
out:
current->state = TASK_RUNNING;
remove_wait_queue(sk->sleep, &wait);
- *err = error;
return error;
+out_noerr:
+ *err = 0;
+ error = 1;
+ goto out;
}
/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2001-02-01 19:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-01 18:51 Alan Cox
2001-02-01 19:49 ` kuznet [this message]
2001-02-02 1:16 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200102011949.WAA21764@ms2.inr.ac.ru \
--to=kuznet@ms2.inr.ac.ru \
--cc=alan@lxorguk.UKuu.ORG.UK \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®