Skip to content

Commit

Permalink
Merge pull request #36 from wp-cli/add-missing-pclose
Browse files Browse the repository at this point in the history
Close already opened process while prompting
  • Loading branch information
schlessera authored Jan 29, 2019
2 parents f09ed91 + 645ded6 commit bd6a2ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/WP_CLI/REPL.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class REPL {

private $prompt;

private $history_file;

public function __construct( $prompt ) {
$this->prompt = $prompt;

Expand Down Expand Up @@ -65,6 +67,8 @@ private function prompt() {

$line = fgets( $fp );

pclose( $fp );

if ( !$line ) {
break;
}
Expand Down

0 comments on commit bd6a2ed

Please sign in to comment.