summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/buffer.c14
-rw-r--r--usr.sbin/ntpd/buffer.c8
-rw-r--r--usr.sbin/ospfd/buffer.c14
3 files changed, 3 insertions, 33 deletions
diff --git a/usr.sbin/bgpd/buffer.c b/usr.sbin/bgpd/buffer.c
index 86437d6a1ff..ff001618cda 100644
--- a/usr.sbin/bgpd/buffer.c
+++ b/usr.sbin/bgpd/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.28 2005/03/17 21:51:26 claudio Exp $ */
+/* $OpenBSD: buffer.c,v 1.29 2005/03/23 11:36:35 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -132,12 +132,6 @@ msgbuf_clear(struct msgbuf *msgbuf)
int
msgbuf_write(struct msgbuf *msgbuf)
{
- /*
- * possible race here
- * when we cannot write out data completely from a buffer,
- * we MUST return and NOT try to write out stuff from later buffers -
- * the socket might have become writeable again
- */
struct iovec iov[IOV_MAX];
struct buf *buf, *next;
int i = 0;
@@ -210,12 +204,6 @@ msgbuf_write(struct msgbuf *msgbuf)
int
msgbuf_writebound(struct msgbuf *msgbuf)
{
- /*
- * possible race here
- * when we cannot write out data completely from a buffer,
- * we MUST return and NOT try to write out stuff from later buffers -
- * the socket might have become writeable again
- */
struct buf *buf;
int n;
diff --git a/usr.sbin/ntpd/buffer.c b/usr.sbin/ntpd/buffer.c
index 32cc048dac2..fe4e0abba19 100644
--- a/usr.sbin/ntpd/buffer.c
+++ b/usr.sbin/ntpd/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.5 2005/02/02 18:57:09 henning Exp $ */
+/* $OpenBSD: buffer.c,v 1.6 2005/03/23 11:36:35 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -92,12 +92,6 @@ msgbuf_clear(struct msgbuf *msgbuf)
int
msgbuf_write(struct msgbuf *msgbuf)
{
- /*
- * possible race here
- * when we cannot write out data completely from a buffer,
- * we MUST return and NOT try to write out stuff from later buffers -
- * the socket might have become writeable again
- */
struct iovec iov[IOV_MAX];
struct buf *buf, *next;
int i = 0;
diff --git a/usr.sbin/ospfd/buffer.c b/usr.sbin/ospfd/buffer.c
index 41693565a10..eea84a5cdf0 100644
--- a/usr.sbin/ospfd/buffer.c
+++ b/usr.sbin/ospfd/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.3 2005/02/09 14:39:56 claudio Exp $ */
+/* $OpenBSD: buffer.c,v 1.4 2005/03/23 11:36:34 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -180,12 +180,6 @@ msgbuf_clear(struct msgbuf *msgbuf)
int
msgbuf_write(struct msgbuf *msgbuf)
{
- /*
- * possible race here
- * when we cannot write out data completely from a buffer,
- * we MUST return and NOT try to write out stuff from later buffers -
- * the socket might have become writeable again
- */
struct iovec iov[IOV_MAX];
struct buf *buf, *next;
int i = 0;
@@ -249,12 +243,6 @@ msgbuf_write(struct msgbuf *msgbuf)
int
msgbuf_writebound(struct msgbuf *msgbuf)
{
- /*
- * possible race here
- * when we cannot write out data completely from a buffer,
- * we MUST return and NOT try to write out stuff from later buffers -
- * the socket might have become writeable again
- */
struct buf *buf;
int n;