Songbird Process Services Source. More...
Go to the source code of this file.
Functions | |
nsresult | SB_RunProcess (sbProcess **aProcess, nsTArray< nsString > &aArgList, const nsAString *aStdin, PRBool aPipeStdoutString, PRMonitor *aDoneMonitor) |
Songbird Process Services Source.
Definition in file sbProcess.cpp.
nsresult SB_RunProcess | ( | sbProcess ** | aProcess, |
nsTArray< nsString > & | aArgList, | ||
const nsAString * | aStdin, | ||
PRBool | aPipeStdoutString, | ||
PRMonitor * | aDoneMonitor | ||
) |
Start running a new process with the list of command line arguments specified by aArgList. The first entry in the argument list specifies the process executable. The executable argument does not need to be a full path. If aStdin is not null, pipe the string to the process's stdin. If aPipeStdoutString is true, pipe the process's stdout to a string that can be read from the created process. If aDoneMonitor is specified, it is notified when the process is done (due to process exit, an internal error, or a kill request). The new process is returned in aProcess.
aProcess | Returned created process. |
aArgList | List of process command line arguments. |
aStdin | Optional string to use for process stdin. |
aPipeStdoutString | If true, pipe process stdout to a string. |
aDoneMonitor | Optional monitor to notify when process is done. |
Definition at line 677 of file sbProcess.cpp.