mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1310116 - Allow waitpid but warn on creating processes in content. r=jld
MozReview-Commit-ID: JjNfA6wUe3T --HG-- extra : rebase_source : ad565d238e7554a951d2f6b4e076918bdfd7a450 extra : histedit_source : 127ff408e498f7c687cf6e7f8f7b4e2fbb8c5ae8
This commit is contained in:
parent
1539628815
commit
8b0d2992cb
@ -719,6 +719,9 @@ public:
|
||||
case __NR_umask:
|
||||
case __NR_kill:
|
||||
case __NR_wait4:
|
||||
#ifdef __NR_waitpid
|
||||
case __NR_waitpid:
|
||||
#endif
|
||||
#ifdef __NR_arch_prctl
|
||||
case __NR_arch_prctl:
|
||||
#endif
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "nsCRT.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "nsXULAppAPI.h"
|
||||
#include "mozilla/Services.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
@ -430,6 +431,9 @@ nsresult
|
||||
nsProcess::RunProcess(bool aBlocking, char** aMyArgv, nsIObserver* aObserver,
|
||||
bool aHoldWeak, bool aArgsUTF8)
|
||||
{
|
||||
NS_WARNING_ASSERTION(!XRE_IsContentProcess(),
|
||||
"No launching of new processes in the content process");
|
||||
|
||||
if (NS_WARN_IF(!mExecutable)) {
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user