You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2019. It is now read-only.
Function to fork off a child process. Returns the `pid` of the forked off process if successfull, throws an Exception if forking was not possible.
36
+
Function to fork off a child process. Returns the `pid` of the forked off process if successfull, throws an Exception if forking was not possible.
38
37
39
38
##### Arguments
40
39
41
40
| Argument | Type | Description |
42
41
|---|---|---|
43
42
| $taskClosure |`callable`| Closure function that is only executed in the child process |
43
+
| $arguments |`array`| Arguments that are passed to the child process closure (optional) |
44
+
| $signalHandler |`callable`| Handler for process signals (optional) |
44
45
45
46
#### getProcessStatus($processId = null)
46
47
@@ -52,16 +53,6 @@ Function that returns that status of a forked child by process id. If provided p
52
53
|---|---|---|
53
54
| $processId |`int`| Id of the process to be checked |
54
55
55
-
#### checkAvailable($processId = null)
56
-
57
-
Function to check if a process exists.
58
-
59
-
##### Arguments
60
-
61
-
| Argument | Type | Description |
62
-
|---|---|---|
63
-
| $processId |`int`| Id of the process to be checked |
64
-
65
56
#### checkSuccess($processId = null)
66
57
67
58
Function that returns based on the process status if a process already finished with great success. If the return value of this is `false` it does not necessarily mean that the process failed though. Since this is a non blocking process check. It is just not successfully finished at the point of the check.
@@ -72,16 +63,6 @@ Function that returns based on the process status if a process already finished
72
63
|---|---|---|
73
64
| $processId |`int`| Id of the process to be checked |
74
65
75
-
#### checkFail($processId = null)
76
-
77
-
Function that checks if a processed failed. If the return value is `false` it does not mean that the process didnt fail. Since this is a non blocking check, it is just not failed in the moment of the check.
78
-
79
-
##### Arguments
80
-
81
-
| Argument | Type | Description |
82
-
|---|---|---|
83
-
| $processId |`int`| Id of the process to be checked |
84
-
85
66
#### closeTask($processId = null)
86
67
87
68
Function to close a forked process. Returns `true` if successfull.
0 commit comments