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

Commit 30b68545 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

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

Change-Id: I30753200e594bbee830a55be9897882884d45b84
parents b1512d3d 15ebf445
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;