def _retry_sys_call(f, *args, **kwargs):
 while True:
  rc = f(*args)
  try:
   _check_rc(rc)
  except InterruptedSystemCall:
   continue
  else:
   break

def _retry_sys_call ( f , * args , ** kwargs ) : while True : rc = f ( * args ) try : _check_rc ( rc ) except InterruptedSystemCall : continue else : break
make a call .