summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated/hoststated.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-02-06 10:03:09 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-02-06 10:03:09 +0000
commit9f835dee6ce2f6967f7d56cd367aa6b159099e43 (patch)
tree68ca949e9a455aff6c61d5cb49eed35c9471c512 /usr.sbin/hoststated/hoststated.c
parent114b34e8eb90c94c0ae1f8244d5029c88fe3ad77 (diff)
change fatal message to know where it happened
Diffstat (limited to 'usr.sbin/hoststated/hoststated.c')
-rw-r--r--usr.sbin/hoststated/hoststated.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/hoststated/hoststated.c b/usr.sbin/hoststated/hoststated.c
index 4cdbca45a34..0648bb3b31b 100644
--- a/usr.sbin/hoststated/hoststated.c
+++ b/usr.sbin/hoststated/hoststated.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hoststated.c,v 1.13 2007/01/29 14:23:31 pyr Exp $ */
+/* $OpenBSD: hoststated.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)