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

Commit d3cb24af authored by Yifan Hong's avatar Yifan Hong
Browse files

servicedispatcher: pause until killed.

Requires a signal to end servicedispatcher, including
closing the shell, manual interrupting with ctrl+c, etc.

Also update tests to reflect this.

Test: binderLibTest
Bug: 182914638

Change-Id: I826cddaee6dae9d569788dc1c31fa5fea1561653
parent 936fc19a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -82,7 +82,11 @@ int Dispatch(const char* name) {
    LOG(INFO) << "Finish setting up RPC on service " << name << " on port" << port;

    std::cout << port << std::endl;
    return EX_OK;

    TEMP_FAILURE_RETRY(pause());

    PLOG(FATAL) << "TEMP_FAILURE_RETRY(pause()) exits; this should not happen!";
    __builtin_unreachable();
}

// Log to logd. For warning and more severe messages, also log to stderr.