forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support a new remote IPC for for GetTerminationStatus.
This does three things: 1. Clean-up a lot of the code in the Linux NaCl loader. 2. Create a new IPC to the NaCl loader "Zygote" for the main Zygote to query the termination status of processes. 3. Clean-up some code in the Zygote and fix "process tracking". zygote_linux.cc: * Split GetTerminationStatus() out from HandleGetTerminationStatus(). * Handle the case where we need to perform a remote IPC for GetTerminationStatus() * Use the new GetTerminationStatus() to support the remote case for HandleReapRequest(). * Replace real_pids_to_sandbox_pids mapping with process_info_map_. * Update shortcut case in ForkWithRealPid() to fill this out. * Update GetTerminationStatus() to remove existing entries. zygote_fork_delegate_linux.h: * Create a new GetTerminationStatus() interface. nacl_helper_linux.cc: * Split HandleZygoteRequest() out from main(). * Split ChildNaClLoaderInit() to handle the child side of a fork(). * Handle a new IPC in HandleGetTerminationStatusRequest(). nacl_fork_delegate_linux.cc: * Implement the new GetTerminationStatus() interface. * Use Pickle for IPCs, make IPCs easier to write with SendIPCRequestAndReadReply(). BUG=133453 R=mseaborn@chromium.org, piman@chromium.org Review URL: https://codereview.chromium.org/23020010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218584 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
jln@chromium.org
committed
Aug 21, 2013
1 parent
c6c5057
commit 7d9c172
Showing
7 changed files
with
443 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.