mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
task: Fix memory leak related to Python 3 signal API changes
Python 3's signal.py API does not properly support custom signal handlers. An exception is created every frame because of this, which fills up the memory of the application. Closes #873
This commit is contained in:
parent
4383fceba2
commit
eccfce4606
@ -17,9 +17,13 @@ from direct.showbase.MessengerGlobal import messenger
|
||||
import types
|
||||
import random
|
||||
import importlib
|
||||
import sys
|
||||
|
||||
try:
|
||||
import signal
|
||||
if sys.version_info >= (3, 0):
|
||||
import _signal as signal
|
||||
else:
|
||||
import signal
|
||||
except ImportError:
|
||||
signal = None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user