parameters: (uPid)
return_statement: return fRc
docstring: Terminates the process in a nice manner (SIGTERM or equivalent).
      Returns True on success, False on failure.
docstring_summary: Terminates the process in a nice manner (SIGTERM or equivalent).
      Returns True on success, False on failure.
docstring_tokens: Terminates the process in a nice manner ( SIGTERM or equivalent ) . Returns True on success False on failure .
function: def processTerminate(uPid):
      """
      Terminates the process in a nice manner (SIGTERM or equivalent).
      Returns True on success, False on failure.
      """
      fRc = False;
      if sys.platform == 'win32':
          try:
              hProcess = win32api.OpenProcess(win32con.PROCESS_TERMINATE, False, uPid);           # pylint: disable=no-member
          except:
              pass;
          else:
              try:
                  win32process.TerminateProcess(hProcess, 0x40010004); # DBG_TERMINATE_PROCESS    # pylint: disable=no-member
                  fRc = True;
              except:
                  pass;
              hProcess.Close(); #win32api.CloseHandle(hProcess)
      else:
          try:
              os.kill(uPid, signal.SIGTERM);
              fRc = True;
          except:
              pass;
      return fRc;
function_tokens: def processTerminate ( uPid ) : fRc = False if sys . platform == 'win32' : try : hProcess = win32api . OpenProcess ( win32con . PROCESS_TERMINATE , False , uPid ) # pylint: disable=no-member except : pass else : try : win32process . TerminateProcess ( hProcess , 0x40010004 ) # DBG_TERMINATE_PROCESS    # pylint: disable=no-member fRc = True except : pass hProcess . Close ( ) #win32api.CloseHandle(hProcess) else : try : os . kill ( uPid , signal . SIGTERM ) fRc = True except : pass return fRc