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

Commit d97e18c0 authored by Felipe Leme's avatar Felipe Leme Committed by Android (Google) Code Review
Browse files

Merge "Flushes stdout when execvp fails." into nyc-dev

parents eff45d06 ec72578b
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -737,7 +737,8 @@ int run_command_always(const char *title, bool drop_root, int timeout_seconds, c


        execvp(command, (char**) args);
        execvp(command, (char**) args);
        // execvp's result will be handled after waitpid_with_timeout() below...
        // execvp's result will be handled after waitpid_with_timeout() below...
        MYLOGD("execvp on command %s (plus args) returned control; calling _exit(-1)", command)
        MYLOGD("execvp on command %s returned control (error: %s)", command, strerror(errno));
        fflush(stdout);
        _exit(-1); // ...but it doesn't hurt to force exit, just in case
        _exit(-1); // ...but it doesn't hurt to force exit, just in case
    }
    }