summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-11-30 21:14:25 +0100
committerGravatar waker <wakeroid@gmail.com>2012-11-30 21:14:25 +0100
commit907ed40fd1b1a1298e5d339f51e68df5f0b63872 (patch)
treeb8802e5191a621b11c108ee322db00407b03ab23 /main.c
parentbe472188fde7aa235c426486c42ae4e2278c9093 (diff)
few minor optimizations
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 5bf653cd..eea4caa5 100644
--- a/main.c
+++ b/main.c
@@ -481,6 +481,9 @@ static int server_terminate;
void
server_loop (void *ctx) {
+#ifdef __linux__
+ prctl (PR_SET_NAME, "deadbeef-server", 0, 0, 0, 0);
+#endif
fd_set rds;
int ret;
struct timeval timeout = {0, 0};