2017-09-14 19:34:18 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Amp\Process\Internal\Posix;
|
|
|
|
|
|
|
|
use Amp\Deferred;
|
|
|
|
use Amp\Process\Internal\ProcessHandle;
|
|
|
|
|
2017-09-17 17:58:05 +02:00
|
|
|
final class Handle extends ProcessHandle {
|
2017-09-14 19:34:18 +02:00
|
|
|
public function __construct() {
|
2017-09-17 17:58:05 +02:00
|
|
|
$this->pidDeferred = new Deferred;
|
|
|
|
$this->joinDeferred = new Deferred;
|
2017-09-14 19:34:18 +02:00
|
|
|
$this->originalParentPid = \getmypid();
|
|
|
|
}
|
|
|
|
|
|
|
|
/** @var Deferred */
|
2017-09-17 17:58:05 +02:00
|
|
|
public $joinDeferred;
|
2017-09-14 19:34:18 +02:00
|
|
|
|
|
|
|
/** @var resource */
|
|
|
|
public $proc;
|
|
|
|
|
2017-09-17 17:58:05 +02:00
|
|
|
/** @var resource */
|
|
|
|
public $extraDataPipe;
|
2017-09-14 19:34:18 +02:00
|
|
|
|
|
|
|
/** @var string */
|
|
|
|
public $extraDataPipeWatcher;
|
|
|
|
|
|
|
|
/** @var int */
|
|
|
|
public $originalParentPid;
|
|
|
|
}
|