NetherNetProcess 5.46.0
The pm-nethernet bridge child process. Its stdout and stderr go to a log file; its stdin is a pipe that is closed when the server stops (the bridge exits when stdin is closed, so it never outlives a crashed server).
Methods
__construct()
php
public function __construct(string $binary, array $arguments, string $token, string $logFile)close()
php
public function close() : voidReleases the process handle. Only call this once the process has exited or was terminated.
getExitCode()
php
public function getExitCode() : intgetLogTail()
php
public function getLogTail() : stringReturns the output the bridge wrote since it was started (at most the last 2 KB).
isRunning()
php
public function isRunning() : boolstart()
php
public function start() : voidstop()
php
public function stop() : voidAsks the bridge to exit by closing its stdin, then kills it if it does not exit within two seconds.
