forked from GNUsocial/gnu-social
Various fixes
Fix OAuth and Realtime issues introduced in9a515b9234
[DATABASE] Fix an empty default value mistake introduced infde929b151
[DATABASE][PostgreSQL] Avoid use of pg_constraint.consrc, which was removed in PostgreSQL 12. [DATABASE][MariaDB] Fix a typo introduced inaed2344bd4
[DAEMON] Wrap an assignment inside "switch": a follow-up toadc689cb15
This commit is contained in:
@@ -78,12 +78,12 @@ class Daemon
|
||||
|
||||
public function background()
|
||||
{
|
||||
// Database connection will likely get lost after forking
|
||||
// Database connection will be likely lost after forking.
|
||||
$this->resetDb();
|
||||
|
||||
// Double-forking.
|
||||
foreach (['single', 'double'] as $v) {
|
||||
switch ($pid = pcntl_fork()) {
|
||||
switch (($pid = pcntl_fork())) {
|
||||
case -1: // error
|
||||
common_log(LOG_ERR, 'Could not fork.');
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user