Re: kernel/fork.c fork_init() ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Iman Darabi wrote:
hi
 (kernel version : 2.6.17)

 init_task.signal->rlim[RLIMIT_NPROC].rlim_max = max_threads/2;
ok .no prob . ( limits for the init_task set at half of max_threads ) .

 init_task.signal->rlim[RLIMIT_NPROC].rlim_cur = max_threads/2;
  why ? . is it necessary ?

rlim_cur is the actually enforced limit

All rlim_max does is put an upper bound on how high the
rlim_cur limit can be set.

--
Politics is the struggle between those who want to make their country
the best in the world, and those who believe it already is.  Each group
calls the other unpatriotic.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux