def read_pid(pidfile, logger):
    _using_pidfile(pidfile, logger)
    try:
        return int(readfile(pidfile))
    except IOError as e:
        if e.errno == errno.ENOENT:
            logger.info("Daemon not running (no lockfile)")
            return None
        raise
With HSTS_SECONDS of 0, the middleware does not add a
dataset/ETHPy150Open facebook/sparts/sparts/daemon.py/read_pid--crossover with--dataset/ETHPy150Open django/django/tests/middleware/test_security.py/SecurityMiddlewareTest.test_sts_off