mirror of
https://github.com/danog/process.git
synced 2024-12-03 18:17:46 +01:00
34 lines
633 B
PHP
34 lines
633 B
PHP
<?php
|
|
|
|
namespace Amp\Process\Internal\Posix;
|
|
|
|
use Amp\Deferred;
|
|
use Amp\Process\Internal\ProcessHandle;
|
|
|
|
final class Handle extends ProcessHandle
|
|
{
|
|
public function __construct() {
|
|
$this->startDeferred = new Deferred;
|
|
$this->endDeferred = new Deferred;
|
|
$this->originalParentPid = \getmypid();
|
|
}
|
|
|
|
/** @var Deferred */
|
|
public $endDeferred;
|
|
|
|
/** @var Deferred */
|
|
public $startDeferred;
|
|
|
|
/** @var resource */
|
|
public $proc;
|
|
|
|
/** @var resource[] */
|
|
public $pipes;
|
|
|
|
/** @var string */
|
|
public $extraDataPipeWatcher;
|
|
|
|
/** @var int */
|
|
public $originalParentPid;
|
|
}
|