From 25fac9a16abe1539850a633d251b4c77cc668edd Mon Sep 17 00:00:00 2001 From: "chris.boulton" Date: Sun, 27 Mar 2011 16:01:56 +1100 Subject: [PATCH] Fix undefined variable $child on non-forking operating systems --- lib/Resque/Worker.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Resque/Worker.php b/lib/Resque/Worker.php index f51af66..c59391f 100644 --- a/lib/Resque/Worker.php +++ b/lib/Resque/Worker.php @@ -52,6 +52,11 @@ class Resque_Worker * @var Resque_Job Current job, if any, being processed by this worker. */ private $currentJob = null; + + /** + * @var int Process ID of child worker processes. + */ + private $child = null; /** * Return all workers known to Resque as instantiated instances.