Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mxqd: Remove unused "pagesize" value
  • Loading branch information
donald committed May 9, 2022
1 parent 0663c4e commit 3763a09
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mxqd.c
Expand Up @@ -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);
Expand All @@ -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");
Expand Down

0 comments on commit 3763a09

Please sign in to comment.