From 09e768815a0a1796d21245c781d19fb81a2368f2 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 2 May 2022 08:01:11 +0200 Subject: [PATCH] mxqd: Remove unused "pagesize" value --- mxqd.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/mxqd.c b/mxqd.c index ce0265c1..c12a2bcf 100644 --- a/mxqd.c +++ b/mxqd.c @@ -1718,7 +1718,6 @@ static int killall_over_memory(struct ppidcache *ppidcache, struct mxq_server *s struct mx_proc_tree *ptree = NULL; struct mx_proc_info *pinfo; - long pagesize; int res; assert(server); @@ -1729,12 +1728,6 @@ static int killall_over_memory(struct ppidcache *ppidcache, struct mxq_server *s /* limit killing to every >= 10 seconds */ mx_within_rate_limit_or_return(10, 0); - pagesize = sysconf(_SC_PAGESIZE); - if (!pagesize) { - mx_log_warning("killall_over_memory(): Can't get _SC_PAGESIZE. Assuming 4096."); - pagesize = 4096; - } - res = mx_proc_tree(&ptree); if (res < 0) { mx_log_err("killall_over_memory(): Reading process tree failed: %m");