2016-08-22 06:40:48 +02:00
|
|
|
<?php declare(strict_types = 1);
|
2015-10-20 07:06:43 +02:00
|
|
|
|
2016-08-23 23:47:40 +02:00
|
|
|
namespace Amp\Parallel;
|
2016-08-18 18:04:48 +02:00
|
|
|
|
|
|
|
interface Process extends Context {
|
2015-10-20 07:06:43 +02:00
|
|
|
/**
|
|
|
|
* @return int PID of process.
|
|
|
|
*/
|
2016-01-23 07:00:56 +01:00
|
|
|
public function getPid(): int;
|
2015-10-20 07:06:43 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param int $signo
|
|
|
|
*
|
2016-08-23 23:47:40 +02:00
|
|
|
* @throws \Amp\Parallel\StatusError
|
2015-10-20 07:06:43 +02:00
|
|
|
*/
|
2016-01-23 07:00:56 +01:00
|
|
|
public function signal(int $signo);
|
2015-10-20 07:06:43 +02:00
|
|
|
}
|