def kill_app(proc):
 try:
  os.kill(proc.pid, SIGINT)
 except Exception as j:
  Error(('Error killing app: %s' % j))
  return False
 return True

def kill_app ( proc ) : try : os . kill ( proc . pid , SIGINT ) except Exception as j : Error ( ( 'Error killing app: %s' % j ) ) return False return True
kill a process .