History log of /system/connectivity/shill/mock_process_manager.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
015a0adaa9b595125543f37d78bad571c639a316 21-Oct-2015 Ningyuan Wang <nywang@google.com> shill: kill dhcpcd process synchronously

Kill the dhcpcd process synchronously in order to ensure no dhcpcd
instance is left runnning.

Bug: 25146029
TEST=unittest and manual test on Dragon board.

Change-Id: Ibb9c5683f77aea662df884d065b49ee2c029a030
/system/connectivity/shill/mock_process_manager.h
5ecc8d0e9eccb1bdc75bc54f0711751be5b1d57b 19-Sep-2015 mukesh agrawal <quiche@google.com> shill: ProcessManager: add StartProcessInMinjailWithPipes()

To migrate CryptoUtilProxy to ProcessManager, we need
ProcessManager to provide a method for forking a child
with pipes back to us.

Make it so.

While there: rename the |from_here| paramater to
|spawn_source|. I found it confusing to pass |from_here|
through to another function. (The name suggests that
we're passing the current location, rather than the
original location.)

Bug: None
BUG=chromium:533598
TEST=unit tests

Change-Id: Id89371d8700b693afed05be61e6913a1d0a496d4
/system/connectivity/shill/mock_process_manager.h
fd8a18d20f747ac0f912d2daf12fd5a2659c6674 19-Sep-2015 mukesh agrawal <quiche@google.com> shill: ProcessManager: add UpdateExitCallback

We want to migrate CryptoUtilProxy and OpenVPNDriver
from ProcessKiller to ProcessManager. There a hitch,
though.

Both classes use ProcessKiller with an exit callback.
And both classes want child exit to be handled differently
in this case, than before they've sent the kill signal.

To meet this need, we add UpdateExitCallback to
ProcessManager. With this new method, CryptoUtilProxy
and OpenVPNDriver will be able to retain their existing
behavior as follows:

process_manager_->UpdateExitCallback(
pid, base::Bind(HandleChildDeath));
process_manager_->StopProcess(pid);

Bug: None
BUG=chromium:533594
TEST=unit tests

Change-Id: I3452c30088917b79311a3b3356bd7135a961be26
/system/connectivity/shill/mock_process_manager.h
89dfada74364ef9d750d7251236f8c58b111e57a 16-Sep-2015 Peter Qiu <zqiu@google.com> 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
/system/connectivity/shill/mock_process_manager.h
c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5 03-Sep-2015 Peter Qiu <zqiu@google.com> License shill to Apache2

This patch automatically replaced the license on all text files from
Chromium OS (BSD style) to AOSP (Apache2), keeping the original year as
a reference.

The license header was added to .gyp and .gypi, the NOTICE was added with a copy
of the Apache2 license and MODULE_LICENSE_* file was added.

BUG=23587594
TEST=grep 'Chromium OS Authors' doesn't find anything.

Change-Id: If41ede586c2465f5831fb7fee270ff41dbfdb596
/system/connectivity/shill/mock_process_manager.h
8ee1c83abf0050cb808fe154babe934546e77821 12-Aug-2015 Peter Qiu <zqiu@chromium.org> shill: dhcp: use ProcessManager to manage dhcpcd processes

This removes the glib dependency for spawning/monitoring dhcpcd processes.

While there, fix a typo in process manager.

This is a part of series CLs that convert shill over to MessageLoopForIO
and chromeos dbus.

BUG=chromium:516841
TEST=unittests

Change-Id: I192fcc68c51e78da60431635abd7b3439fadd5b0
Reviewed-on: https://chromium-review.googlesource.com/292963
Commit-Ready: Zeping Qiu <zqiu@chromium.org>
Tested-by: Zeping Qiu <zqiu@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
/system/connectivity/shill/mock_process_manager.h
177462644d4925111fe3414d93970a2356d65813 05-Aug-2015 Peter Qiu <zqiu@chromium.org> shill: process management using libchromeos's process library

This provides APIs for process creation and asynchronous process
termination.

Exit callback will not be invoked when the caller initiates the process
termination. In this case, the caller is not interested in the
exit callback anymore and the callback might've been cleanup by the caller
by the time the process terminates.

When terminating a process, ProcessManager will attempt to send a
SIGTERM signal to the process first, and then attempt SIGKILL signal
if it doesn't terminate within certain timeout. If the process
failed to terminate with both attempts, an error message will be logged,
and we will give up on terminating that process.

BUG=chromium:516841
TEST=USE="asan clang" FEATURES=test emerge-$BOARD shill

Change-Id: Iae201c1f8d0c86a96af71befb2c35b195b900dbb
Reviewed-on: https://chromium-review.googlesource.com/290652
Reviewed-by: Zeping Qiu <zqiu@chromium.org>
Commit-Queue: Zeping Qiu <zqiu@chromium.org>
Tested-by: Zeping Qiu <zqiu@chromium.org>
/system/connectivity/shill/mock_process_manager.h