Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: base/process/process_posix.cc

Issue 2807463004: GN: aix port along with linux_s390x, linux_ppc64 and linux_ppc64le support. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/process/process_posix.cc
diff --git a/base/process/process_posix.cc b/base/process/process_posix.cc
index bbb342c4cf49a4b6c9072faacf5e6df78f384140..2fb708d2b47841363ea599c8ab98d7107e9d3f77 100644
--- a/base/process/process_posix.cc
+++ b/base/process/process_posix.cc
@@ -183,6 +183,7 @@ bool WaitForExitWithTimeoutImpl(base::ProcessHandle handle,
base::TimeDelta timeout) {
base::ProcessHandle parent_pid = base::GetParentProcessId(handle);
base::ProcessHandle our_pid = base::GetCurrentProcessHandle();
+
if (parent_pid != our_pid) {
#if defined(OS_MACOSX)
// On Mac we can wait on non child processes.
@@ -256,12 +257,12 @@ Process Process::DeprecatedGetProcessFromHandle(ProcessHandle handle) {
return Process(handle);
}
-#if !defined(OS_LINUX) && !defined(OS_MACOSX)
+#if !defined(OS_LINUX) && !defined(OS_MACOSX) && !defined(OS_AIX)
// static
bool Process::CanBackgroundProcesses() {
return false;
}
-#endif // !defined(OS_LINUX) && !defined(OS_MACOSX)
+#endif // !defined(OS_LINUX) && !defined(OS_MACOSX) && !defined(OS_AIX)
// static
void Process::TerminateCurrentProcessImmediately(int exit_code) {
@@ -365,7 +366,7 @@ bool Process::WaitForExitWithTimeout(TimeDelta timeout, int* exit_code) const {
return WaitForExitWithTimeoutImpl(Handle(), exit_code, timeout);
}
-#if !defined(OS_LINUX) && !defined(OS_MACOSX)
+#if !defined(OS_LINUX) && !defined(OS_MACOSX) && !defined(OS_AIX)
bool Process::IsProcessBackgrounded() const {
// See SetProcessBackgrounded().
DCHECK(IsValid());
@@ -379,7 +380,7 @@ bool Process::SetProcessBackgrounded(bool value) {
NOTIMPLEMENTED();
return false;
}
-#endif // !defined(OS_LINUX) && !defined(OS_MACOSX)
+#endif // !defined(OS_LINUX) && !defined(OS_MACOSX) && !defined(OS_AIX)
int Process::GetPriority() const {
DCHECK(IsValid());

Powered by Google App Engine
This is Rietveld 408576698