Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14476552
D11404.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D11404.diff
View Options
diff --git a/src/daemon/torture/PhutilExcessiveServiceCallsDaemon.php b/src/daemon/torture/PhutilExcessiveServiceCallsDaemon.php
--- a/src/daemon/torture/PhutilExcessiveServiceCallsDaemon.php
+++ b/src/daemon/torture/PhutilExcessiveServiceCallsDaemon.php
@@ -5,7 +5,7 @@
*/
final class PhutilExcessiveServiceCallsDaemon extends PhutilTortureTestDaemon {
- public function run() {
+ protected function run() {
while (true) {
execx('true');
$this->stillWorking();
diff --git a/src/daemon/torture/PhutilFatalDaemon.php b/src/daemon/torture/PhutilFatalDaemon.php
--- a/src/daemon/torture/PhutilFatalDaemon.php
+++ b/src/daemon/torture/PhutilFatalDaemon.php
@@ -5,7 +5,7 @@
*/
final class PhutilFatalDaemon extends PhutilTortureTestDaemon {
- public function run() {
+ protected function run() {
exit(1);
}
diff --git a/src/daemon/torture/PhutilHangForeverDaemon.php b/src/daemon/torture/PhutilHangForeverDaemon.php
--- a/src/daemon/torture/PhutilHangForeverDaemon.php
+++ b/src/daemon/torture/PhutilHangForeverDaemon.php
@@ -5,7 +5,7 @@
*/
final class PhutilHangForeverDaemon extends PhutilTortureTestDaemon {
- public function run() {
+ protected function run() {
while (true) {
sleep(60);
}
diff --git a/src/daemon/torture/PhutilNiceDaemon.php b/src/daemon/torture/PhutilNiceDaemon.php
--- a/src/daemon/torture/PhutilNiceDaemon.php
+++ b/src/daemon/torture/PhutilNiceDaemon.php
@@ -5,7 +5,7 @@
*/
final class PhutilNiceDaemon extends PhutilTortureTestDaemon {
- public function run() {
+ protected function run() {
while (true) {
$this->log(date('r'));
$this->stillWorking();
diff --git a/src/daemon/torture/PhutilProcessGroupDaemon.php b/src/daemon/torture/PhutilProcessGroupDaemon.php
--- a/src/daemon/torture/PhutilProcessGroupDaemon.php
+++ b/src/daemon/torture/PhutilProcessGroupDaemon.php
@@ -5,7 +5,7 @@
*/
final class PhutilProcessGroupDaemon extends PhutilTortureTestDaemon {
- public function run() {
+ protected function run() {
$root = phutil_get_library_root('phutil');
$root = dirname($root);
diff --git a/src/daemon/torture/PhutilSaturateStdoutDaemon.php b/src/daemon/torture/PhutilSaturateStdoutDaemon.php
--- a/src/daemon/torture/PhutilSaturateStdoutDaemon.php
+++ b/src/daemon/torture/PhutilSaturateStdoutDaemon.php
@@ -5,7 +5,7 @@
*/
final class PhutilSaturateStdoutDaemon extends PhutilTortureTestDaemon {
- public function run() {
+ protected function run() {
for ($ii = 0; $ii < 512; $ii++) {
echo str_repeat('~', 1024 * 1024);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 29, 6:13 AM (8 h, 4 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6941687
Default Alt Text
D11404.diff (2 KB)
Attached To
Mode
D11404: Fix the visibility of `PhutilDaemon::run` methods
Attached
Detach File
Event Timeline
Log In to Comment