Can we modify limits.h? Will it have any effect? … here is a solution to the problem.

## Can we modify limits.h? Will it have any effect?

Let’s say we want to change the value of the maximum number of processes that can be executed simultaneously per UID, what if we modify the value CHILD_MAX in limits.h.

Is the value in limits.h just set so that we know the “limit”, or can we actually use it to manipulate our system?

I don’t think there’s any reason to change system behavior in this way since the kernel hasn’t been recompiled.

### Solution

The value in `<limits.h>`

is just there to inform you of the actual limit. Redefining macros does not change the actual limits.