SIGTERM moved

This commit is contained in:
Michael 2022-10-18 04:35:06 +00:00
parent 33ac39c335
commit 27e9f2b223
2 changed files with 6 additions and 6 deletions

View file

@ -36,7 +36,7 @@ use Friendica\Core\Session;
* feed for the source. * feed for the source.
* This can be used in HTML and JavaScript where needed a line break. * This can be used in HTML and JavaScript where needed a line break.
*/ */
define('EOL', "<br />\r\n"); define('EOL', "<br />\r\n");
/** /**
* @name Gravity * @name Gravity
@ -50,11 +50,6 @@ define('GRAVITY_COMMENT', 6);
define('GRAVITY_UNKNOWN', 9); define('GRAVITY_UNKNOWN', 9);
/* @}*/ /* @}*/
// Normally this constant is defined - but not if "pcntl" isn't installed
if (!defined('SIGTERM')) {
define('SIGTERM', 15);
}
/** /**
* Returns the user id of locally logged in user or false. * Returns the user id of locally logged in user or false.
* *

View file

@ -351,6 +351,11 @@ class App
{ {
set_time_limit(0); set_time_limit(0);
// Normally this constant is defined - but not if "pcntl" isn't installed
if (!defined('SIGTERM')) {
define('SIGTERM', 15);
}
// Ensure that all "strtotime" operations do run timezone independent // Ensure that all "strtotime" operations do run timezone independent
date_default_timezone_set('UTC'); date_default_timezone_set('UTC');