From f895095dfca1142a755f77b9092caee25f4ce465 Mon Sep 17 00:00:00 2001 From: "jst%mozilla.jstenback.com" Date: Fri, 22 Oct 2004 23:55:56 +0000 Subject: [PATCH] Fixing problem where mExitValue is unconditionally -1 on the mac after running a process. No bug. r+sr=dbaron@dbaron.org, a=asa@mozilla.org git-svn-id: svn://10.0.0.236/trunk@164224 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/threads/nsProcessCommon.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/xpcom/threads/nsProcessCommon.cpp b/mozilla/xpcom/threads/nsProcessCommon.cpp index d54094f883c..0fb8eb13fe1 100644 --- a/mozilla/xpcom/threads/nsProcessCommon.cpp +++ b/mozilla/xpcom/threads/nsProcessCommon.cpp @@ -352,6 +352,9 @@ nsProcess::Run(PRBool blocking, const char **args, PRUint32 count, PRUint32 *pid if (err != noErr) { rv = PR_FAILURE; } + + mExitValue = err; + #else if ( blocking ) { mProcess = PR_CreateProcess(mTargetPath.get(), my_argv, NULL, NULL);