Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa806667 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "binderLibTest: cleanup child processes on error" am: 15ebf445 am:...

Merge "binderLibTest: cleanup child processes on error" am: 15ebf445 am: 30b68545 am: e1b97ae9

Change-Id: I3f01f6981ad43b4efe83544e8cb2df8100540dad
parents ab3ea1d4 e1b97ae9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@

#include <private/binder/binder_module.h>
#include <sys/epoll.h>
#include <sys/prctl.h>

#define ARRAY_SIZE(array) (sizeof array / sizeof array[0])

@@ -107,6 +108,7 @@ pid_t start_server_process(int arg2, bool usePoll = false)
    if (pid == -1)
        return pid;
    if (pid == 0) {
        prctl(PR_SET_PDEATHSIG, SIGHUP);
        close(pipefd[0]);
        execv(binderservername, childargv);
        status = -errno;