Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we modify limits.h? Would it render any effect?

Let's say we want to change the value of maximum number of precesses each uid can execute contemporarily, what if we modify value CHILD_MAX in limits.h. Is the value in limits.h just set in order to let us know the 'limits', or we can actually manipulate our system with it? I think since kernel is not recompiled, there should be no reason that we can change the system behaviour in such way.

like image 354
dspjm Avatar asked Oct 20 '25 03:10

dspjm


1 Answers

The values in <limits.h> are just there to inform you of the actual limits. Redefining the macros will not change the actual limits.

like image 193
Dietrich Epp Avatar answered Oct 21 '25 17:10

Dietrich Epp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!