Changing CPU limits

Larry McVoy lm at arizona.edu
Wed Mar 23 12:42:10 AEST 1988


In article <12569 at brl-adm.ARPA> lauri at mitre-bedford.arpa (Lauri A. Szklut) writes:
>
>It appears that ULTRIX determines the cpu limit for a process at process
>creation.  I can use the "limit" command to change my cpu limit for the
>current process (csh) and any future processes.  My question:  is there 
>a way to modify this limit once the process is already running?  

You may trap SIGXCPU and/or SIGXFSZ and continue (or so the man page for
getrlimit(2) seems to imply).  Better yet, why not just crank up the 
limits at startup time if you know that it's going to overflow?  
setrlimit(2) will tell you how.
-- 

Larry McVoy	lm at arizona.edu or ...!{uwvax,sun}!arizona.edu!lm



More information about the Comp.unix.questions mailing list