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");