Skip to content

Commit

Permalink
mxqd: Remove unused "pagesize" value
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed May 5, 2022
1 parent 88dd544 commit 09e7688
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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");
Expand Down

0 comments on commit 09e7688

Please sign in to comment.