mirror of
https://github.com/danog/process.git
synced 2024-12-12 09:09:44 +01:00
36 lines
670 B
PHP
36 lines
670 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;
|
|
}
|