diff --git a/lib/RippingCluster/BackgroundTask.class.php b/lib/RippingCluster/BackgroundTask.class.php index 61a139c..dc4cb45 100644 --- a/lib/RippingCluster/BackgroundTask.class.php +++ b/lib/RippingCluster/BackgroundTask.class.php @@ -6,7 +6,7 @@ class RippingCluster_BackgroundTask { } - public function run($command) { + public static function run($command) { $pipes = array(); $pid = proc_open($command . ' &', array(), $pipes); proc_close($pid); diff --git a/lib/RippingCluster/ForegroundTask.class.php b/lib/RippingCluster/ForegroundTask.class.php index 597b636..059a707 100644 --- a/lib/RippingCluster/ForegroundTask.class.php +++ b/lib/RippingCluster/ForegroundTask.class.php @@ -59,7 +59,9 @@ class RippingCluster_ForegroundTask { $tx[] = $pipes[self::PIPE_STDIN]; } - stream_select($rx, $tx, $ex = null, null, null); // Block til r/w possible + $ex = array(); + + stream_select($rx, $tx, $ex, null, null); // Block til r/w possible if (!empty($tx)) { $txRet = fwrite($pipes[self::PIPE_STDIN], substr($stdin, $txOff, 8192)); if ($txRet !== false) { diff --git a/lib/RippingCluster/IPlugin.class.php b/lib/RippingCluster/IPlugin.class.php new file mode 100644 index 0000000..35cd7f4 --- /dev/null +++ b/lib/RippingCluster/IPlugin.class.php @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/lib/RippingCluster/IPluginFactory.class.php b/lib/RippingCluster/IPluginFactory.class.php new file mode 100644 index 0000000..94c4aa6 --- /dev/null +++ b/lib/RippingCluster/IPluginFactory.class.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/lib/RippingCluster/PluginFactory.class.php b/lib/RippingCluster/PluginFactory.class.php index 595392c..3827162 100644 --- a/lib/RippingCluster/PluginFactory.class.php +++ b/lib/RippingCluster/PluginFactory.class.php @@ -1,13 +1,22 @@ \ No newline at end of file diff --git a/lib/RippingCluster/Source/IPlugin.class.php b/lib/RippingCluster/Source/IPlugin.class.php new file mode 100644 index 0000000..72f8b47 --- /dev/null +++ b/lib/RippingCluster/Source/IPlugin.class.php @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/lib/RippingCluster/Source/PluginFactory.class.php b/lib/RippingCluster/Source/PluginFactory.class.php new file mode 100644 index 0000000..0f385c3 --- /dev/null +++ b/lib/RippingCluster/Source/PluginFactory.class.php @@ -0,0 +1,41 @@ + \ No newline at end of file diff --git a/lib/RippingCluster/Worker/IPlugin.class.php b/lib/RippingCluster/Worker/IPlugin.class.php index 25afefc..252d37c 100644 --- a/lib/RippingCluster/Worker/IPlugin.class.php +++ b/lib/RippingCluster/Worker/IPlugin.class.php @@ -1,10 +1,6 @@