Ask Solem 12 سال پیش
والد
کامیت
5daced27b0
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      celery/platforms.py

+ 1 - 0
celery/platforms.py

@@ -250,6 +250,7 @@ def _create_pidlock(pidfile):
     if pidlock.is_locked() and not pidlock.remove_if_stale():
     if pidlock.is_locked() and not pidlock.remove_if_stale():
         raise SystemExit(PIDLOCKED % (pidfile, pidlock.read_pid()))
         raise SystemExit(PIDLOCKED % (pidfile, pidlock.read_pid()))
     pidlock.acquire()
     pidlock.acquire()
+    return pidlock
 
 
 
 
 class DaemonContext(object):
 class DaemonContext(object):