mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-25 15:06:21 +02:00
renice -5 when running as daemon
This commit is contained in:
parent
d216064baa
commit
58e62a3d5d
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
***/
|
||||
|
||||
#include <iostream>
|
||||
#include <sys/resource.h>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/program_options.hpp>
|
||||
|
||||
|
@ -121,6 +122,7 @@ int main (int argc, char *argv[])
|
|||
if (runAsDaemon)
|
||||
{
|
||||
daemonize("/var/run/snapclient.pid");
|
||||
setpriority(PRIO_PROCESS, 0, -5);
|
||||
logS(kLogNotice) << "daemon started" << std::endl;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue