summaryrefslogtreecommitdiff
path: root/usr.sbin/dvmrpd/imsg.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-03-19 10:13:21 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-03-19 10:13:21 +0000
commitb67f6a9f90a9325f0d15b09bd5723878165fc9b3 (patch)
tree1841c6778abf17e55179529bed2ca09bd9e59e3f /usr.sbin/dvmrpd/imsg.c
parent4d7b413950b93c44f0a9722f962708b91fbd723e (diff)
do not signal "connection closed" upstream on EINTR/EAGAIN, from bgpd et al
Diffstat (limited to 'usr.sbin/dvmrpd/imsg.c')
-rw-r--r--usr.sbin/dvmrpd/imsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dvmrpd/imsg.c b/usr.sbin/dvmrpd/imsg.c
index da001cec783..f086fa677f9 100644
--- a/usr.sbin/dvmrpd/imsg.c
+++ b/usr.sbin/dvmrpd/imsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsg.c,v 1.1 2006/06/01 14:12:20 norby Exp $ */
+/* $OpenBSD: imsg.c,v 1.2 2007/03/19 10:13:20 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -50,7 +50,7 @@ imsg_read(struct imsgbuf *ibuf)
log_warn("imsg_read: pipe read error");
return (-1);
}
- return (0);
+ return (-2);
}
ibuf->r.wpos += n;