Issue #5 resolved

ptrace not works on linux 3.x kernels.

Felipe Prenholato
created an issue

I have a install of pythonbrew with Python 2.6.8 (without SSLv2 support) for running old applications.

This install runs Django 1.2.1.

When trying to run Django 1.2.1 server or shell, I ends with a error "UNKNOW OS!".

I checked and that happens because ptrace.os_tools don't recognize linux3 platform as Linux.

To make it work I changed code in following way:

{{{

!diff

--- os_tools.py_original 2012-08-04 01:29:03.985275595 -0300 +++ os_tools.py 2012-08-04 01:28:55.305275224 -0300 @@ -17,7 +17,7 @@ RUNNING_PYTHON3 = version_info[0] == 3 RUNNING_PYPY = ("pypy" in version.lower()) RUNNING_WINDOWS = (platform == 'win32') -RUNNING_LINUX = (platform == 'linux2') +RUNNING_LINUX = (platform in ('linux2', 'linux3')) RUNNING_FREEBSD = (platform.startswith('freebsd') or platform.startswith('gnukfreebsd')) RUNNING_OPENBSD = platform.startswith('openbsd') }}}

Comments (3)

  1. Log in to comment