Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | class Pcntl |
||
17 | { |
||
18 | public function fork(): int |
||
19 | { |
||
20 | return \pcntl_fork(); |
||
21 | } |
||
22 | |||
23 | /** @param-out int $status */ |
||
24 | public function waitpid(int $process_id, ?int &$status, int $flags = 0): int |
||
25 | { |
||
26 | return \pcntl_waitpid( |
||
27 | $process_id, |
||
28 | $status, |
||
29 | $flags |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | public function wifstopped(int $status): bool |
||
34 | { |
||
35 | return \pcntl_wifstopped($status); |
||
36 | } |
||
37 | |||
38 | public function wstopsig(int $status): int|false |
||
41 | } |
||
42 | } |
||
43 |