mirror of
https://github.com/danog/process.git
synced 2024-12-02 17:51:46 +01:00
30 lines
586 B
PHP
30 lines
586 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->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 int */
|
|
public $originalParentPid;
|
|
}
|