Cleanup ProcessManager on shutdown
Explicitly cleanup async_signal_handler_ used by ProcessManager
during shutdown. Otherwise, it will be cleaned up in the ProcessManager's
destructor, and by that time the message loop does not exist anymore.
Thus, causing the crash.
Bug: 24136007
TEST=restart shill and verify shill doesn't crash
Change-Id: I798c4073451d98a6bab1cc7ac5fa1f7c3dbbc2ba
diff --git a/chromeos_daemon_unittest.cc b/chromeos_daemon_unittest.cc
index 7ba18d1..b4b9e51 100644
--- a/chromeos_daemon_unittest.cc
+++ b/chromeos_daemon_unittest.cc
@@ -169,6 +169,7 @@
EXPECT_CALL(*manager_, Stop());
EXPECT_CALL(*metrics_, Stop());
+ EXPECT_CALL(process_manager_, Stop());
StopDaemon();
}