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

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

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

Change-Id: Ie74775cd2f492d21456c085e31e521e1ce635e38
parents 7e0c617a 30b68545
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -30,6 +30,7 @@


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


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


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