a/src/utils/pathut.cpp b/src/utils/pathut.cpp
...
...
513
    out = url_encode(in, 7);
513
    out = url_encode(in, 7);
514
    }
514
    }
515
    return true;
515
    return true;
516
}
516
}
517
517
518
518
// We do not want to mess with the pidfile content in the destructor:
519
// the lock might still be in use in a child process. In fact as much
520
// as we'd like to reset the pid inside the file when we're done, it
521
// would be very difficult to do it right and it's probably best left
522
// alone.
519
Pidfile::~Pidfile()
523
Pidfile::~Pidfile()
520
{
524
{
521
    if (m_fd >= 0)
525
    if (m_fd >= 0)
522
    ::close(m_fd);
526
    ::close(m_fd);
523
    m_fd = -1;
527
    m_fd = -1;