From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,c7bc7bb0dd734266 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-09-05 14:26:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!news.usyd.edu.au!not-for-mail From: Paul Szabo Newsgroups: comp.unix.tru64 Subject: Re: Memory consuming script for CSH Date: Fri, 06 Sep 2002 07:26:48 +1000 Organization: School of Mathematics and Statistics, University of Sydney Message-ID: <3D77CC18.41C6@maths.usyd.edu.au> References: <80b03cfdcc74c6f6130e83cf4a3db806.105464@mygate.mailgate.org> NNTP-Posting-Host: talus.maths.usyd.edu.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: spacebar.ucc.usyd.edu.au 1031261208 23983 129.78.68.1 (5 Sep 2002 21:26:48 GMT) X-Complaints-To: usenet@news.usyd.edu.au NNTP-Posting-Date: 5 Sep 2002 21:26:48 GMT To: Maurizio Fuschetto X-Mailer: Mozilla 3.01Gold (X11; I; OSF1 V5.1 alpha) Xref: archiver1.google.com comp.unix.tru64:8565 Maurizio Fuschetto wrote: > Under Digital Unix 4.0F and csh, the following script: > > while (1) > sleep 1 > kill -USR2 `cat pidfile` > end > > where pidfile contains a pid of a target process, cause the csh in which > is executed to eat lot of memory - say, about 500K per second. > > Interrupting the script execution with CTRL-C, produces the csh to break > the script but NOT frees the allocated memory. > > Replacing `cat pidfile` with a constant or using anything but kill (I > tried with echo) does not have such effect. > > Some tips?? I find the same problem with V5.1 and latest patches: it does not matter what PID is in pidfile (as long as it numeric) or what signal is used. I guess this is a bug in csh. Maybe you want to send a bug report to Compaq (now also known as the "New HP"). -- Paul Szabo - psz@maths.usyd.edu.au http://www.maths.usyd.edu.au:8000/u/psz/ School of Mathematics and Statistics University of Sydney 2006 Australia