From f319b4a3bc4bf6509334679b25357f10dacae72b Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 3 Apr 2004 22:34:38 +0000 Subject: Fixes for setpriority on freebsd git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@370 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd_io.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/inspircd_io.cpp') diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 244316c50..885954881 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -14,7 +14,10 @@ * --------------------------------------------------- */ +#ifdef __linux__ #include +#endif + #include #include #include "inspircd.h" @@ -80,7 +83,11 @@ int DaemonSeed (void) close(0); close(1); close(2); + + #ifdef __linux__ setpriority(PRIO_PROCESS,(int)getpid(),15); /* ircd sets to low process priority so it doesnt hog the box */ + #endif + return (TRUE); } -- cgit v1.2.3