|
@@ -91,7 +91,7 @@ discard block |
|
|
block discarded – undo |
|
91
|
91
|
public function isRunning() |
|
92
|
92
|
{ |
|
93
|
93
|
$this->checkSupportingOS('Cocur\BackgroundProcess can only check if a process is running on *nix-based '. |
|
94
|
|
- 'systems, such as Unix, Linux or Mac OS X. You are running "%s".'); |
|
|
94
|
+ 'systems, such as Unix, Linux or Mac OS X. You are running "%s".'); |
|
95
|
95
|
|
|
96
|
96
|
try { |
|
97
|
97
|
$result = shell_exec(sprintf('ps %d 2>&1', $this->pid)); |
|
@@ -112,7 +112,7 @@ discard block |
|
|
block discarded – undo |
|
112
|
112
|
public function stop() |
|
113
|
113
|
{ |
|
114
|
114
|
$this->checkSupportingOS('Cocur\BackgroundProcess can only stop a process on *nix-based systems, such as '. |
|
115
|
|
- 'Unix, Linux or Mac OS X. You are running "%s".'); |
|
|
115
|
+ 'Unix, Linux or Mac OS X. You are running "%s".'); |
|
116
|
116
|
|
|
117
|
117
|
try { |
|
118
|
118
|
$result = shell_exec(sprintf('kill -9 %d 2>&1', $this->pid)); |
|
@@ -133,7 +133,7 @@ discard block |
|
|
block discarded – undo |
|
133
|
133
|
public function getPid() |
|
134
|
134
|
{ |
|
135
|
135
|
$this->checkSupportingOS('Cocur\BackgroundProcess can only return the PID of a process on *nix-based systems, '. |
|
136
|
|
- 'such as Unix, Linux or Mac OS X. You are running "%s".'); |
|
|
136
|
+ 'such as Unix, Linux or Mac OS X. You are running "%s".'); |
|
137
|
137
|
|
|
138
|
138
|
return $this->pid; |
|
139
|
139
|
} |
Please login to merge, or discard this patch.