]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
suricata: display PID file name in case of error.
authorEric Leblond <eric@regit.org>
Sun, 11 Nov 2012 17:25:57 +0000 (18:25 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 14 Nov 2012 09:29:49 +0000 (10:29 +0100)
src/util-pidfile.c

index 8b6b5d518536a6332dbc7cc8c6342086bf6cabd0..ed14aa1dda6f312795d61d1bbe09dc64fadbeed5 100644 (file)
@@ -53,7 +53,9 @@ int SCPidfileCreate(const char *pidfile)
 
     pidfd = open(pidfile, O_CREAT | O_TRUNC | O_NOFOLLOW | O_WRONLY, 0644);
     if (pidfd < 0) {
-        SCLogError(SC_ERR_PIDFILE_OPEN, "unable to set pidfile: %s", strerror(errno));
+        SCLogError(SC_ERR_PIDFILE_OPEN, "unable to set pidfile '%s': %s",
+                   pidfile,
+                   strerror(errno));
         SCReturnInt(-1);
     }