On Jul 2, 7:31 pm, kcrisman <[email protected]> wrote:
> Dear sage-devel,
>
> I consistently have a weird thing happen when I empty Trash (on Mac)
> that has a Sage I've used in it.    Everything goes fine, but I get
> about five messages saying
>
> "The operation can't be completed because the item X is in use"
>
> where X is in the set {python2.6, python, time.so, cStringIO.so,
> _ssl.so, _socket.so, libz.1.2.3.dylib} or something close (it seems to
> slightly change each time).
>
> And sure enough, there is always a PID with python living in the (now
> nonexistent) folder where I used to be running Sage.  Killing this
> process allows me to empty the trash.
>
> Obviously this is not crucial to my computer's performance, but I do
> always exit Sage properly, and I think this is probably not ideal to
> leave processes (even phantom ones) running on computers.  Any ideas
> what is going on?  I do not know how to replicate it, but it does
> happen whenever I've tried to empty Trash with a Sage install I used
> for a while in it - not necessarily with one I used only once.  This
> is on Snow Leopard, but it happened on Leopard too and maybe even
> Tiger?
>
> I hope this proves to be useful info.
>
> -kcrisman

Yes, I have seen this too on Solaris. Also had maxima processes live
after I exited Sage. As Georg remarks, doctesting seems to cause this
problem more than normal usage.

At one point it was a very serious issue on Solaris

http://trac.sagemath.org/sage_trac/ticket/7153

bringing the system to a near standstill. That was resolved

http://trac.sagemath.org/sage_trac/ticket/8391

Did you see the code commented out in the top-level Sage script at the
bottom?

# This should kill all children of this process too.
# Uncomment this if you have trouble with orphans.
# Note that you'll get an annoying "Killed" message
# whenever Sage exits.
# kill -9 -$$

I expect you could get rid of the annoying killed messages by
redirecting stdout and stderr to /dev/null.

Dave

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to