An async process dispatcher for Amp.
ext-pcntl
, which is not strictly required for this library.ext-pcntl
)ext-pcntl
, an optional dependency)amphp/sync
revolt/event-loop
0.2.xFull Changelog: https://github.com/amphp/process/compare/v2.0.0-beta.2...v2.0.0-beta.3
Process::getWorkingDirectory()
amphp/byte-stream
v2.0.0-beta.2
join()
inside kill()
to avoid suspensions in destructorsProcessException
being thrown if process killing fails on Windows, which has been subject to race conditionsProcess::__construct()
is now private in favor of Process::start()
Process::start()
is now static instead of an instance methodProcess::start()
does no longer return the PID, use Process::getPid()
Process::kill()
does no longer result in an exception of Process::join()
Process::getEnv()
has been renamed to Process::getEnvironment()
escapeArguments
to escapeArgument
StatusError
TypeError
on PHP 8taskkill
on windows for Process::kill()
escapeArguments()
function that escapes process arguments for each platform (i.e., Windows vs. Linux/Unix) (#35)v1.2
(#34)Process::signal()
sending signals to the wrapper child process instead of the intended child (#36)Process::join()
resolving before the child process exits due to termination signals being sent and handled or ignored by the child process (#36)