Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Paul Szabo <psz@maths.usyd.edu.au>
To: Maurizio Fuschetto <maufus@tin.it>
Subject: Re: Memory consuming script for CSH
Date: Fri, 06 Sep 2002 07:26:48 +1000	[thread overview]
Message-ID: <3D77CC18.41C6@maths.usyd.edu.au> (raw)
In-Reply-To: 80b03cfdcc74c6f6130e83cf4a3db806.105464@mygate.mailgate.org

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


      reply	other threads:[~2002-09-05 21:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-05 16:24 Memory consuming script for CSH Maurizio Fuschetto
2002-09-05 21:26 ` Paul Szabo [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox