Opened 16 years ago

Closed 16 years ago

#1 closed defect (fixed)

SAGE Notebook leaves dead processes on OS X

Reported by: William Stein Owned by: somebody
Priority: major Milestone:
Component: basic arithmetic Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


The sage notebook restart often leaves "dead Python" process running. This is especially bad on OS X, where there is a 100 process limit by default (at least on my laptop).

Change History (1)

comment:1 Changed 16 years ago by William Stein

Resolution: fixed
Status: newclosed

I finally decided to fix that bug under OS X where the SAGE notebook spawns > 100 processes, which OS X doesn't like (i.e., when you hit restart a lot). It took me 2 minutes to fix, so I wish I had done it earlier.

I just inserted this line

self.sage._expect = None

in as line 661, so now its:

alarm(2) try:

self.sage._expect = None del self.sage

except AttributeError?, msg:

print "WARNING: %s"%msg

except Exception, msg:

print msg print "WARNING: Error deleting SAGE object!"


I checked this into the standard darcs repository.

Note: See TracTickets for help on using tickets.