Skip to content

Commit

Permalink
[Process] remove fixing of legacy bug, when PTS functionality is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
a.dmitryuk authored and nicolas-grekas committed Oct 29, 2023
1 parent 9973636 commit 12f9ebe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,6 @@ public function start(callable $callback = null, array $env = [])
// See https://unix.stackexchange.com/questions/71205/background-process-pipe-input
$commandline = '{ ('.$commandline.') <&3 3<&- 3>/dev/null & } 3<&0;';
$commandline .= 'pid=$!; echo $pid >&3; wait $pid 2>/dev/null; code=$?; echo $code >&3; exit $code';

// Workaround for the bug, when PTS functionality is enabled.
// @see : https://bugs.php.net/69442
$ptsWorkaround = fopen(__FILE__, 'r');
}

$envPairs = [];
Expand Down

0 comments on commit 12f9ebe

Please sign in to comment.