Skip to content
Wrapping prctl for python http://packages.python.org/python-prctl/
Python C Makefile
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
docs Version 1.6.1
.gitignore
COPYING New release 1.6.0. Also update some administrativa.
HACKING Add release engineering info and roll a proper release
MANIFEST.in Add docs/tests to the source distribution
README Big doc update and fixes
_prctlmodule.c Actually make this work on CentOS 5 (linux 2.6.18) and python 2.4
prctl.py Actually make this work on CentOS 5 (linux 2.6.18) and python 2.4
securebits.h Use the SECBIT_* constants instead of the SECURE_* constants
setup.py Version 1.6.1
test_prctl.py Actually make this work on CentOS 5 (linux 2.6.18) and python 2.4

README

python-prctl -- Control process attributes through prctl
========================================================

The linux prctl function allows you to control specific characteristics of a
process' behaviour. Usage of the function is fairly messy though, due to
limitations in C and linux. This module provides a nice non-messy python(ic)
interface.

Besides prctl, this library also wraps libcap for complete capability handling
and allows you to set the process name as seen in ps and top.

See docs/index.rst for the documentation. An HTML version can be found on
http://packages.python.org/python-prctl/

Quick install instructions
==========================
Before installing python-prctl, you need GCC, libc headers and libcap headers.
On Debian/Ubuntu:

$ sudo apt-get install build-essential libcap-dev

On fedora:

$ sudo yum install gcc glibc-devel libcap-devel

Stable version:

$ sudo easy_install python-prctl

Latest code:

$ git clone http://github.com/seveas/python-prctl
$ cd python-prctl
$ python setup.py build
$ sudo python setup.py install
Something went wrong with that request. Please try again.