From fdf19ebdf90654c951fd116189ca908464790070 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Thu, 2 Jan 2003 21:00:31 +0000 Subject: [PATCH] 187309 r=dougt sr=bzbarsky convert out param of nsIProcess::Run to a return value git-svn-id: svn://10.0.0.236/trunk@135791 18797224-902f-48f8-a5cc-f745e15eee43 --- .../resources/content/viewers/styleRules/styleRules.js | 3 +-- mozilla/xpcom/threads/nsIProcess.idl | 7 ++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mozilla/extensions/inspector/resources/content/viewers/styleRules/styleRules.js b/mozilla/extensions/inspector/resources/content/viewers/styleRules/styleRules.js index 0c992cfa26c..edacd9f2981 100644 --- a/mozilla/extensions/inspector/resources/content/viewers/styleRules/styleRules.js +++ b/mozilla/extensions/inspector/resources/content/viewers/styleRules/styleRules.js @@ -195,8 +195,7 @@ StyleRulesViewer.prototype = var proc = C.classes['@mozilla.org/process/util;1'].createInstance (C.interfaces.nsIProcess); proc.init(exe); - var pid = {}; - proc.run(false, [url], 1, pid); + proc.run(false, [url], 1); } catch (ex) { alert("Unable to open editor."); } diff --git a/mozilla/xpcom/threads/nsIProcess.idl b/mozilla/xpcom/threads/nsIProcess.idl index a2c916ba785..1989d135938 100644 --- a/mozilla/xpcom/threads/nsIProcess.idl +++ b/mozilla/xpcom/threads/nsIProcess.idl @@ -11,7 +11,12 @@ interface nsIProcess : nsISupports void kill(); /** XXX what charset? **/ - void run(in boolean blocking, [array, size_is(count)] in string args, in unsigned long count, out unsigned long pid); + /** Executes the file this object was initialized with + * @param blocking Whether to wait until the process terminates before returning or not + * @param args An array of arguments to pass to the process + * @param count The length of the args array + * @return the PID of the newly spawned process */ + unsigned long run(in boolean blocking, [array, size_is(count)] in string args, in unsigned long count); readonly attribute nsIFile location; readonly attribute unsigned long pid;