summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Thenault <sylvain.thenault@logilab.fr>2008-12-02 12:50:53 +0100
committerSylvain Thenault <sylvain.thenault@logilab.fr>2008-12-02 12:50:53 +0100
commit906eaeaca20b5dc9b2b4a59bce2793f9875fc6cc (patch)
tree9eeda44f13854caf075afaff8b09fadb9700a261
parent029023ac9399311a91dc1f7deed778b26275a45a (diff)
downloadlogilab-common-906eaeaca20b5dc9b2b4a59bce2793f9875fc6cc.tar.gz
clenaup
-rw-r--r--proc.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/proc.py b/proc.py
index 7deefe8..bc29caa 100644
--- a/proc.py
+++ b/proc.py
@@ -1,6 +1,6 @@
"""module providing:
* process information (linux specific: rely on /proc)
-* a class for resource (memory / cpu time) control
+* a class for resource control (memory / time / cpu time)
:organization: Logilab
:copyright: 2007-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
@@ -100,7 +100,6 @@ class ProcInfoLoader:
pass
-
import tempfile
import traceback
from signal import signal, SIGXCPU, SIGKILL, SIGUSR2, SIGUSR1
@@ -110,7 +109,6 @@ from time import time
from resource import getrlimit, setrlimit, RLIMIT_CPU, RLIMIT_AS
-
try:
class ResourceError(BaseException):
"""Error raise when resource limit is reached"""