Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Big doc update and fixes
- Document new functionality - Use .. attribute instead of :attr: where that should be done - Make README a bit more useful
- Loading branch information
Showing
2 changed files
with
211 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,35 @@ | ||
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://kaarsemaker.net/code/python-prctl. | ||
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 | ||
|
||
Quick install instructions: | ||
Latest code: | ||
|
||
git clone http://github.com/seveas/python-prctl | ||
cd python-prctl | ||
python setup.py build | ||
sudo python setup.py install | ||
$ git clone http://github.com/seveas/python-prctl | ||
$ cd python-prctl | ||
$ python setup.py build | ||
$ sudo python setup.py install |
Oops, something went wrong.