From: Eric Leblond Date: Sun, 11 Nov 2012 17:25:57 +0000 (+0100) Subject: suricata: display PID file name in case of error. X-Git-Tag: suricata-1.4beta3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e148b2b82a2d894426dd3f257cb458c0bd48bab6;p=thirdparty%2Fsuricata.git suricata: display PID file name in case of error. --- diff --git a/src/util-pidfile.c b/src/util-pidfile.c index 8b6b5d5185..ed14aa1dda 100644 --- a/src/util-pidfile.c +++ b/src/util-pidfile.c @@ -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); }