diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-09-29 16:05:35 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-09-29 16:05:35 +0000 |
commit | 664c1c58d699157ce13758a4e5735c652ab2e385 (patch) | |
tree | 7544ccd38f481e3f7aef2ebe0d16f409652af739 | |
parent | 5c125bf1d5b74a47550aac080282e84dae075e88 (diff) |
uncomment daemon() call; spotted by jose@
-rw-r--r-- | usr.sbin/sensorsd/sensorsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/sensorsd/sensorsd.c b/usr.sbin/sensorsd/sensorsd.c index eb4fa26da67..a1f1d18cc16 100644 --- a/usr.sbin/sensorsd/sensorsd.c +++ b/usr.sbin/sensorsd/sensorsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sensorsd.c,v 1.1 2003/09/24 20:32:49 henning Exp $ */ +/* $OpenBSD: sensorsd.c,v 1.2 2003/09/29 16:05:34 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -105,9 +105,9 @@ main(int argc, char *argv[]) if (parse_config(configfile)) errx(1, "error in config file"); -/* if (daemon(0, 0) == -1) + if (daemon(0, 0) == -1) err(1, "unable to fork"); -*/ + signal(SIGHUP, reparse_cfg); syslog(LOG_INFO, "startup, monitoring %d sensors", i); |