X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcollectd.c;h=6815cccfd80f2af49e34f6215db737dcac9543ea;hb=dbf349ec8c0150a52a7bad5f8b9fc79a6201e2f6;hp=d96d676790d0d8c730610484637c9322e2a27b5b;hpb=842c1a2d2a640151a89b9de7f4acd3b6a058c799;p=collectd.git diff --git a/src/collectd.c b/src/collectd.c index d96d6767..6815cccf 100644 --- a/src/collectd.c +++ b/src/collectd.c @@ -118,7 +118,7 @@ static int init_hostname (void) ERROR ("Looking up \"%s\" failed. You have set the " "\"FQDNLookup\" option, but I cannot resolve " "my hostname to a fully qualified domain " - "name. Please fix you network " + "name. Please fix the network " "configuration.", hostname_g); return (-1); } @@ -384,8 +384,9 @@ static int pidfile_create (void) static int pidfile_remove (void) { const char *file = global_option_get ("PIDFile"); + if (file == NULL) + return 0; - DEBUG ("unlink (%s)", (file != NULL) ? file : ""); return (unlink (file)); } /* static int pidfile_remove (const char *file) */ #endif /* COLLECT_DAEMON */