OSDN Git Service

Fixed send_broadcast and fork handling issues.
authorFelipe Leme <felipeal@google.com>
Wed, 23 Mar 2016 23:47:00 +0000 (16:47 -0700)
committerFelipe Leme <felipeal@google.com>
Wed, 23 Mar 2016 23:55:41 +0000 (16:55 -0700)
commit73f731c30a8b7d811127b8e89e01c427b6aab622
treec9ac6ae5e4daab4faca68300a284c0e75ad316f8
parentd97e18c038f23cecbe3d5e95fabf4dcd2bfaac20
Fixed send_broadcast and fork handling issues.

send_broadcast() was calling run_command_always(char*, bool, int, char*) passing:
    run_command_always(NULL, 20, true, am_args);

I.e., it was passing "true" (!1) as the boolean, and 1 (true) as the
timeout value; the proper call should be:

    run_command_always(NULL, true, 20, am_args);

Also, the code handling failure on child calls was calling _exit(),
which quits dumpstate - it should simply return the function instead.

BUG: 27804637

Change-Id: If8c9b40eddc8b76f92e6d11078dfe446a39ad4d4
cmds/dumpstate/dumpstate.cpp
cmds/dumpstate/utils.cpp