OSDN Git Service

Wait for children to exit in makeparallel
authorDan Willemsen <dwillemsen@google.com>
Wed, 22 Feb 2017 00:27:23 +0000 (16:27 -0800)
committerDan Willemsen <dwillemsen@google.com>
Wed, 22 Feb 2017 01:53:35 +0000 (17:53 -0800)
commitf0e2986cbf1e3e5d8f201a462047021d38b6cc25
tree31a141f594fc61f809702276b2a706493aa24bd1
parenta7d4e0cd73e9eda41630baf69938bbddffbc530a
Wait for children to exit in makeparallel

This is a partial revert to the last makeparallel change, since now we
were being killed by the signal before waiting for our child to exit. So
instead of not installing the handlers, only pass the signal along if
it's a SIGTERM.

Bug: 35214134
Test: Ensure that we're still only getting one signal for SIGINT
Test: Ctrl-C, ensure that all the soong_ui lines are before the make
      error line.
Change-Id: I26fff9483a3abfd79ceb5a9ea47e3f7572d9e923
tools/makeparallel/makeparallel.cpp