コード例 #1
0
ファイル: cgroup.py プロジェクト: novas0x2a/cgroup-utils
    def attach(self, pid):
        if not process.exists(pid):
            raise EnvironmentError("Process %d not exists" % pid)

        fileops.write(self.paths['tasks'], str(pid))
コード例 #2
0
ファイル: cgroup.py プロジェクト: hezzrrah/cgroup-utils
    def attach(self, pid):
        if not process.exists(pid):
            raise EnvironmentError("Process %d not exists" % pid)

        fileops.write(self.paths['tasks'], str(pid))