1
0
mirror of https://github.com/danog/process.git synced 2024-12-12 17:17:21 +01:00
process/lib/Internal/Posix/Handle.php

33 lines
649 B
PHP
Raw Normal View History

<?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;
2017-09-17 20:45:36 +02:00
/** @var string */
public $extraDataPipeStartWatcher;
/** @var int */
public $originalParentPid;
}