NS_IMETHODIMP nsProcess::Kill() { nsresult rv = NS_OK; if (mProcess) rv = PR_KillProcess(mProcess) == PR_SUCCESS ? NS_OK : NS_ERROR_FAILURE; return rv; }
nsresult sbProcess::Kill() { // Do nothing if process already killed. { NS_ENSURE_TRUE(mProcessLock, NS_ERROR_NOT_INITIALIZED); nsAutoLock autoProcessLock(mProcessLock); if (mHasBeenKilled) return NS_OK; mHasBeenKilled = PR_TRUE; } // Kill the base process. if (mBaseProcess) PR_KillProcess(mBaseProcess); // Shutdown the wait for done thread. if (mWaitForDoneThread) mWaitForDoneThread->Shutdown(); return NS_OK; }