From e148b2b82a2d894426dd3f257cb458c0bd48bab6 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sun, 11 Nov 2012 18:25:57 +0100 Subject: [PATCH] suricata: display PID file name in case of error. --- src/util-pidfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }