New answers tagged

0

On older Unices, this was done with the ulimit(2) system call, current Linux uses getrlimit(2), sysconf(3)/setrlimit(2). Check out the manual pages. You'd create the child process by fork(2), set it's limits, and then use one of the exec(3) calls to start the desired program.


Top 50 recent answers are included