1
0
mirror of https://github.com/danog/process.git synced 2024-12-11 16:49:40 +01:00
process/lib/Internal/ProcessHandle.php
Niklas Keller a9f60b8d89
Don't accept handshake if process already ended
This might happen if the process is destroyed while the wrapper tries to establish the connections.
2017-11-24 18:43:57 -06:00

28 lines
483 B
PHP

<?php
namespace Amp\Process\Internal;
use Amp\Deferred;
use Amp\Process\ProcessInputStream;
use Amp\Process\ProcessOutputStream;
use Amp\Struct;
abstract class ProcessHandle {
use Struct;
/** @var ProcessOutputStream */
public $stdin;
/** @var ProcessInputStream */
public $stdout;
/** @var ProcessInputStream */
public $stderr;
/** @var Deferred */
public $pidDeferred;
/** @var int */
public $status = ProcessStatus::STARTING;
}