mirror of
https://github.com/anope/anope.git
synced 2026-06-26 01:46:39 +02:00
Check for being at terminal before forking
This commit is contained in:
+1
-1
@@ -320,7 +320,7 @@ void Server::Sync(bool SyncLinks)
|
||||
c->ci->RestoreTopic();
|
||||
}
|
||||
|
||||
if (!nofork)
|
||||
if (!nofork && AtTerm())
|
||||
{
|
||||
Log(LOG_TERMINAL) << "Successfully linked, launching into background...";
|
||||
Fork();
|
||||
|
||||
Reference in New Issue
Block a user