mirror of
https://github.com/danog/process.git
synced 2024-12-02 09:37:55 +01:00
c818f508d3
Windows only classes cause havoc with coverage numbers… open to suggestions on how to fix but at least now it won't look like we didn't even try testing. :-P
34 lines
666 B
PHP
34 lines
666 B
PHP
<?php
|
|
|
|
namespace Amp\Process\Internal\Posix;
|
|
|
|
use Amp\Deferred;
|
|
use Amp\Process\Internal\ProcessHandle;
|
|
|
|
/** @internal */
|
|
final class Handle extends ProcessHandle {
|
|
public function __construct() {
|
|
$this->pidDeferred = new Deferred;
|
|
$this->joinDeferred = new Deferred;
|
|
$this->originalParentPid = \getmypid();
|
|
}
|
|
|
|
/** @var Deferred */
|
|
public $joinDeferred;
|
|
|
|
/** @var resource */
|
|
public $proc;
|
|
|
|
/** @var resource */
|
|
public $extraDataPipe;
|
|
|
|
/** @var string */
|
|
public $extraDataPipeWatcher;
|
|
|
|
/** @var string */
|
|
public $extraDataPipeStartWatcher;
|
|
|
|
/** @var int */
|
|
public $originalParentPid;
|
|
}
|