From fb9d1a81bc30403a31cb0c870d3e8d57a081b54c Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 5 Oct 2012 14:59:16 +0200 Subject: [PATCH] comment --- src/utils/pathut.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/pathut.cpp b/src/utils/pathut.cpp index ad888f04..adce8b21 100644 --- a/src/utils/pathut.cpp +++ b/src/utils/pathut.cpp @@ -515,7 +515,11 @@ bool printableUrl(const string &fcharset, const string &in, string &out) return true; } - +// We do not want to mess with the pidfile content in the destructor: +// the lock might still be in use in a child process. In fact as much +// as we'd like to reset the pid inside the file when we're done, it +// would be very difficult to do it right and it's probably best left +// alone. Pidfile::~Pidfile() { if (m_fd >= 0)