Commit 2f3d3355 authored by Antoine Millet's avatar Antoine Millet
Browse files

Removed dependency to prctl

parent c71d6a07
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -24,8 +24,6 @@ from sjrpc.utils import RpcHandler

from cloudcontrol.server import __version__

import prctl


def listed(func):
    func.__listed__ = True
@@ -89,8 +87,6 @@ class CCHandler(RpcHandler):
        @functools.wraps(func)
        def wrapper(*args, **kwargs):
            call_id = base64.b64encode(os.urandom(6))
            if getattr(func, '__threaded__', True):
                prctl.set_name('H: %s' % call_id)
            started = time.time()
            returned = func(*args, **kwargs)
            duration = time.time() - started