diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-02-06 10:03:09 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-02-06 10:03:09 +0000 |
commit | 9f835dee6ce2f6967f7d56cd367aa6b159099e43 (patch) | |
tree | 68ca949e9a455aff6c61d5cb49eed35c9471c512 /usr.sbin/relayd | |
parent | 114b34e8eb90c94c0ae1f8244d5029c88fe3ad77 (diff) |
change fatal message to know where it happened
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r-- | usr.sbin/relayd/relayd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/relayd/relayd.c b/usr.sbin/relayd/relayd.c index ae31748ae37..2cd50aad40c 100644 --- a/usr.sbin/relayd/relayd.c +++ b/usr.sbin/relayd/relayd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relayd.c,v 1.13 2007/01/29 14:23:31 pyr Exp $ */ +/* $OpenBSD: relayd.c,v 1.14 2007/02/06 10:03:08 reyk Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -276,7 +276,7 @@ main_dispatch_pfe(int fd, short event, void *ptr) if ((n = imsg_read(ibuf)) == -1) fatal("imsg_read_error"); if (n == 0) - fatalx("parent: pipe closed"); + fatalx("main_dispatch_pfe: pipe closed"); break; case EV_WRITE: if (msgbuf_write(&ibuf->w) == -1) @@ -316,8 +316,8 @@ main_dispatch_hce(int fd, short event, void * ptr) case EV_READ: if ((n = imsg_read(ibuf)) == -1) fatal("imsg_read error"); - if (n == 0) /* connection closed */ - fatalx("parent: pipe closed"); + if (n == 0) + fatalx("main_dispatch_hce: pipe closed"); break; case EV_WRITE: if (msgbuf_write(&ibuf->w) == -1) |