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

Commit c4925eb6 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "binderRpcTest: use TMPDIR" am: 7e4fb7ca am: fbae5253 am: 2aeb2b0f am: f87ec882

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1675955

Change-Id: I9c73546f91a0a9fc8479a60783f9b1c35b7c8c0b
parents 438bf5bc f87ec882
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -199,13 +199,8 @@ private:

static std::string allocateSocketAddress() {
    static size_t id = 0;
    static bool gUseTmp = access("/tmp/", F_OK) != -1;

    if (gUseTmp) {
        return "/tmp/binderRpcTest_" + std::to_string(id++);
    } else {
        return "/dev/binderRpcTest_" + std::to_string(id++);
    }
    std::string temp = getenv("TMPDIR") ?: "/tmp";
    return temp + "/binderRpcTest_" + std::to_string(id++);
};

struct ProcessConnection {