public function work_running($bucket = self::DEFAULT_BUCKET)
	{
		$results = array();
		foreach ($this->forked_children as $pid => $child)
		{
			if ($child['status'] != self::STOPPED && $child['bucket'] === $bucket)
			{
				$results[$pid] = $child;
			}
		}

		return $results;
	}
public function work_running($bucket = self::DEFAULT_BUCKET)
	{
		$results = array();
		foreach ($this->forked_children as $pid => $child)
		{
			if ($child['status'] != self::STOPPED && $child['bucket'] === $bucket)
			{
				$results[$pid] = $child;
			}
		}

		return $results;
	}
public function work_running ( $ bucket = self :: DEFAULT_BUCKET ) { $ results = array ( ) ; foreach ( $ this -> forked_children as $ pid => $ child ) { if ( $ child [ 'status' ] != self :: STOPPED && $ child [ 'bucket' ] === $ bucket ) { $ results [ $ pid ] = $ child ; } } return $ results ; }
Return array of currently running children

@param int $bucket The bucket.
@return bool true if child has work, false if not
Return array of currently running children