Ticket #1 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

SAGE Notebook leaves dead processes on OS X

Reported by: was Owned by: somebody
Priority: major Milestone:
Component: basic arithmetic Keywords:
Cc: Author(s):
Report Upstream: Reviewer(s):
Merged in: Work issues:

Description

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

Changed 4 years ago by was

  • status changed from new to closed
  • resolution set to fixed

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 worksheet.py 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!"

cancel_alarm()

I checked this into the standard darcs repository.

Note: See TracTickets for help on using tickets.