Ejemplo n.º 1
0
    def attach(self, pid):
        if not process.exists(pid):
            raise EnvironmentError("Process %d not exists" % pid)

        fileops.write(self.paths['tasks'], str(pid))
Ejemplo n.º 2
0
    def attach(self, pid):
        if not process.exists(pid):
            raise EnvironmentError("Process %d not exists" % pid)

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