Opened 13 years ago

Closed 13 years ago

#1 closed defect (fixed)

SAGE Notebook leaves dead processes on OS X

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

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 (1)

comment:1 Changed 13 years ago by was

  • Resolution set to fixed
  • Status changed from new to closed

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.