From 3763a09c34a30f89b27dedb28caaaac0f18ab770 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 bfc4c86f..c54e0369 100644 --- a/mxqd.c +++ b/mxqd.c @@ -1720,7 +1720,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); @@ -1731,12 +1730,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");