Насколько я понимаю, в случае ulimit "the fork of a process also copies the environment including the limits."