diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-05-29 05:20:43 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-05-29 05:20:43 +0000 |
commit | c27548ed14ac6504c478764692fd5cc45a61d23d (patch) | |
tree | dd93efcc4e6b34eb96aa29455c9d6f737acab45b /usr.sbin/ntpd | |
parent | 1ea9d4236974efeb738b02435288078484b047c1 (diff) |
when we cannot open /dev/hotplug, donn't bail, just work without
with ckuethe
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r-- | usr.sbin/ntpd/sensors.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/sensors.c b/usr.sbin/ntpd/sensors.c index cd4f1897ada..53fc64f7506 100644 --- a/usr.sbin/ntpd/sensors.c +++ b/usr.sbin/ntpd/sensors.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sensors.c,v 1.15 2006/05/28 20:39:16 henning Exp $ */ +/* $OpenBSD: sensors.c,v 1.16 2006/05/29 05:20:42 henning Exp $ */ /* * Copyright (c) 2006 Henning Brauer <henning@openbsd.org> @@ -175,8 +175,10 @@ sensor_hotplugfd(void) { int fd, flags; - if ((fd = open(_PATH_DEV_HOTPLUG, O_RDONLY, 0)) == -1) - fatal(NULL); + if ((fd = open(_PATH_DEV_HOTPLUG, O_RDONLY, 0)) == -1) { + log_warn("open %s", _PATH_DEV_HOTPLUG); + return (-1); + } if ((flags = fcntl(fd, F_GETFL, 0)) == -1) fatal("fnctl F_GETFL"); |