aboutsummaryrefslogtreecommitdiffstats
path: root/atomicio.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2011-05-11 18:57:17 +0000
committerXin LI <delphij@FreeBSD.org>2011-05-11 18:57:17 +0000
commitc98f06c929bb8c8a81b4254bebab2fb08a98b6ce (patch)
treee369e613d9739710b96ef90916dbaa1376d1c210 /atomicio.c
parentb46a1ee8f0756ffa8aff09939ad8c814b10b8931 (diff)
downloadsrc-c98f06c929bb8c8a81b4254bebab2fb08a98b6ce.tar.gz
src-c98f06c929bb8c8a81b4254bebab2fb08a98b6ce.zip
Import nc from OpenBSD 4.9.vendor/netcat/4.9
Notes
Notes: svn path=/vendor/netcat/dist/; revision=221785 svn path=/vendor/netcat/4.9/; revision=221786; tag=vendor/netcat/4.9
Diffstat (limited to 'atomicio.c')
-rw-r--r--atomicio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/atomicio.c b/atomicio.c
index e9d98b3561e8..feb6f194409e 100644
--- a/atomicio.c
+++ b/atomicio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atomicio.c,v 1.9 2007/09/07 14:50:44 tobias Exp $ */
+/* $OpenBSD: atomicio.c,v 1.10 2011/01/08 00:47:19 jeremy Exp $ */
/*
* Copyright (c) 2006 Damien Miller. All rights reserved.
* Copyright (c) 2005 Anil Madhavapeddy. All rights reserved.
@@ -53,7 +53,7 @@ atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n)
case -1:
if (errno == EINTR)
continue;
- if (errno == EAGAIN) {
+ if ((errno == EAGAIN) || (errno == ENOBUFS)) {
(void)poll(&pfd, 1, -1);
continue;
}