Skip to content

Commit

Permalink
Fix "Process pipes are not supported on Windows" in new method.
Browse files Browse the repository at this point in the history
  • Loading branch information
steven.chiu committed Jun 6, 2019
1 parent dbb1061 commit 25fd726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JobScheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public function run(callable $cb = null)

public function runProcess($cmd)
{
$process = new \React\ChildProcess\Process($cmd);
if (!isset($_SERVER['OS']) || strpos($_SERVER['OS'], 'Windows') === false) {
$process = new \React\ChildProcess\Process($cmd);
$process->start($this->looper);
}
}
Expand Down

0 comments on commit 25fd726

Please sign in to comment.