Path: utzoo!mnetor!uunet!husc6!uwvax!oddjob!ncar!noao!arizona!lm From: lm@arizona.edu (Larry McVoy) Newsgroups: comp.unix.questions Subject: Re: Changing CPU limits Message-ID: <4456@megaron.arizona.edu> Date: 23 Mar 88 02:42:10 GMT References: <12569@brl-adm.ARPA> Reply-To: lm@megaron.arizona.edu.UUCP (Larry McVoy) Organization: University of Arizona, Tucson Lines: 14 In article <12569@brl-adm.ARPA> lauri@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@arizona.edu or ...!{uwvax,sun}!arizona.edu!lm