aboutsummaryrefslogtreecommitdiffstats
path: root/console.php
diff options
context:
space:
mode:
authorVicDeo <dubiniuk@owncloud.com>2016-05-12 13:08:08 +0300
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-05-12 12:08:08 +0200
commit60ec1fc85d91629aa119f200890f4a543cc7063d (patch)
tree6cf518c9000e159093f482e1c36bb7aa7efaed15 /console.php
parentde915934e660247809b69777c867370379dedc42 (diff)
downloadnextcloud-server-60ec1fc85d91629aa119f200890f4a543cc7063d.tar.gz
nextcloud-server-60ec1fc85d91629aa119f200890f4a543cc7063d.zip
Put back pcntl warning (#24295)
Diffstat (limited to 'console.php')
-rw-r--r--console.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/console.php b/console.php
index 72f961515d7..fc571b03f1e 100644
--- a/console.php
+++ b/console.php
@@ -79,6 +79,10 @@ try {
exit(1);
}
+ if (!function_exists('pcntl_signal') && !in_array('--no-warnings', $argv)) {
+ echo "The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php" . PHP_EOL;
+ }
+
$application = new Application(\OC::$server->getConfig(), \OC::$server->getEventDispatcher(), \OC::$server->getRequest());
$application->loadCommands(new ArgvInput(), new ConsoleOutput());
$application->run();