Skip to content

Commit

Permalink
Remove incorrect and unused memory limiting code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Apr 26, 2019
1 parent 5c0c830 commit 0ebf9e4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/memory_mosq.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,7 @@ static unsigned long max_memcount = 0;
static size_t mem_limit = 0;
void memory__set_limit(size_t lim)
{
#ifdef LINUX
struct rlimit r;

r.rlim_cur = lim;
r.rlim_max = lim;

setrlimit(RLIMIT_CPU, &r);

mem_limit = 0;
#else
mem_limit = lim;
#endif
}
#endif

Expand Down

0 comments on commit 0ebf9e4

Please sign in to comment.