summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org>2019-02-14 14:07:19 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2019-02-14 14:10:39 (GMT)
commit2d2e9e1fdadb5af7bfd5a2a77500218b592034e1 (patch) (side-by-side diff)
tree01aab262490eeff1dcea109767719ba1f84b50fc /src
parentfe4dd5c7fe77591ee8d7780d3f5e2e9b9334c2c5 (diff)
downloadvarnish-mib-2d2e9e1fdadb5af7bfd5a2a77500218b592034e1.tar.gz
varnish-mib-2d2e9e1fdadb5af7bfd5a2a77500218b592034e1.tar.bz2
Version 4.0release-4.0
* Makefile.am: Add init. * NEWS: Update. * README: Mention initialization files from init. * configure.ac: Version 4.0 * init/README: New file. * init/debian: New file. * init/rh: New file. * init/slackware: New file. * init/slackware.genrc: New file. * init/varnish-mib.service: New file. * src/main.c: Minor fixes.
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 01a24a9..13d9818 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4,2 +4,3 @@
#include <signal.h>
+#include <string.h>
@@ -176,3 +177,2 @@ main(int argc, char **argv)
if (!foreground) {
- int i;
if (daemon(0, 1)) {
@@ -232,3 +232,2 @@ pidfile_create(char const *pid_file)
"cannot create pidfile `%s': %s\n",
- progname,
pid_file,
@@ -257,3 +256,3 @@ pidfile_check(char const *pid_file)
snmp_log(LOG_ERR,
- "cannot get pid from pidfile `%s'\n",
+ "cannot get pid from pidfile `%s': %s\n",
pid_file,

Return to:

Send suggestions and report system problems to the System administrator.