Skip to content

Commit 25fac9a

Browse files
author
chris.boulton
committed
Fix undefined variable $child on non-forking operating systems
1 parent 34de8e4 commit 25fac9a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Resque/Worker.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ class Resque_Worker
5252
* @var Resque_Job Current job, if any, being processed by this worker.
5353
*/
5454
private $currentJob = null;
55+
56+
/**
57+
* @var int Process ID of child worker processes.
58+
*/
59+
private $child = null;
5560

5661
/**
5762
* Return all workers known to Resque as instantiated instances.

0 commit comments

Comments
 (0)