diff options
author | 2008-06-26 00:01:51 +0000 | |
---|---|---|
committer | 2008-06-26 00:01:51 +0000 | |
commit | 4bca6d3e5204b8c47e4a8032527cfbd32a9c7cd5 (patch) | |
tree | 336a9851a367d03ae5d9280b88d5456439cde049 | |
parent | Move .rodata 512KB further, since kernels will soon reach the address .rodata (diff) | |
download | wireguard-openbsd-4bca6d3e5204b8c47e4a8032527cfbd32a9c7cd5.tar.xz wireguard-openbsd-4bca6d3e5204b8c47e4a8032527cfbd32a9c7cd5.zip |
fatalx instead of fatal because errno is not set of pipe is closed. OK henning
-rw-r--r-- | usr.sbin/bgpd/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 031312f19cc..724e2c2094a 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.281 2008/05/08 07:43:02 henning Exp $ */ +/* $OpenBSD: session.c,v 1.282 2008/06/26 00:01:51 claudio Exp $ */ /* * Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org> @@ -2259,7 +2259,7 @@ session_dispatch_imsg(struct imsgbuf *ibuf, int idx, u_int *listener_cnt) fatal("session_dispatch_imsg: imsg_read error"); if (n == 0) /* connection closed */ - fatal("session_dispatch_imsg: pipe closed"); + fatalx("session_dispatch_imsg: pipe closed"); for (;;) { if ((n = imsg_get(ibuf, &imsg)) == -1) |