summaryrefslogtreecommitdiff
path: root/base/process
diff options
context:
space:
mode:
Diffstat (limited to 'base/process')
-rw-r--r--base/process/launch_posix.cc5
-rw-r--r--base/process/process_posix.cc5
2 files changed, 0 insertions, 10 deletions
diff --git a/base/process/launch_posix.cc b/base/process/launch_posix.cc
index 1c4df40665..2184051552 100644
--- a/base/process/launch_posix.cc
+++ b/base/process/launch_posix.cc
@@ -163,12 +163,7 @@ int sys_rt_sigaction(int sig, const struct kernel_sigaction* act,
// See crbug.com/177956.
void ResetChildSignalHandlersToDefaults(void) {
for (int signum = 1; ; ++signum) {
-#if defined(ANDROID)
- struct kernel_sigaction act;
- memset(&act, 0, sizeof(act));
-#else
struct kernel_sigaction act = {0};
-#endif
int sigaction_get_ret = sys_rt_sigaction(signum, nullptr, &act);
if (sigaction_get_ret && errno == EINVAL) {
#if !defined(NDEBUG)
diff --git a/base/process/process_posix.cc b/base/process/process_posix.cc
index db525f0355..3da6793afb 100644
--- a/base/process/process_posix.cc
+++ b/base/process/process_posix.cc
@@ -102,12 +102,7 @@ static bool WaitForSingleNonChildProcess(base::ProcessHandle handle,
return false;
}
-#if defined(ANDROID)
- struct kevent change;
- memset(&change, 0, sizeof(change));
-#else
struct kevent change = {0};
-#endif
EV_SET(&change, handle, EVFILT_PROC, EV_ADD, NOTE_EXIT, 0, NULL);
int result = HANDLE_EINTR(kevent(kq.get(), &change, 1, NULL, 0, NULL));
if (result == -1) {