def METHOD_NAME(self, pids):
    for pid in pids:
        status, err_output = self.target.run('kill -0 %s' %pid)
        if not status:
            self.logger.debug("previous %s is still running" %pid)
            return 1