summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/InspIRCd.layout14
-rw-r--r--src/inspircd_io.cpp4
2 files changed, 11 insertions, 7 deletions
diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout
index 1fa16ace5..af5b80b5f 100644
--- a/src/InspIRCd.layout
+++ b/src/InspIRCd.layout
@@ -1,6 +1,6 @@
[Editors]
-Focused=1
-Order=1
+Focused=7
+Order=1,7
[Editor_0]
Open=0
@@ -12,10 +12,10 @@ LeftChar=1
[Editor_1]
Open=1
-Top=1
+Top=0
CursorCol=24
CursorRow=322
-TopLine=307
+TopLine=1917
LeftChar=1
[Editor_2]
@@ -59,11 +59,11 @@ TopLine=1
LeftChar=1
[Editor_7]
-Open=0
-Top=0
+Open=1
+Top=1
CursorCol=1
CursorRow=1
-TopLine=1
+TopLine=36
LeftChar=1
[Editor_8]
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index d8e095441..366fa799c 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -14,6 +14,9 @@
* ---------------------------------------------------
*/
+#include <sys/resource.h>
+#include <sys/types.h>
+#include <unistd.h>
#include "inspircd.h"
#include "inspircd_io.h"
#include "inspircd_util.h"
@@ -77,6 +80,7 @@ int DaemonSeed (void)
close(0);
close(1);
close(2);
+ setpriority(PRIO_PROCESS,(int)getpid(),15); /* ircd sets to low process priority so it doesnt hog the box */
return (TRUE);
}