blob: dc9ad94f1f06f49424057e42091cbed3e43ebed4 [file] [log] [blame] [view]
<link rel="stylesheet" href="../style.css" />
[TOC]
# fuchsia.process.lifecycle
<div class="fidl-version-div"><span class="fidl-attribute fidl-version">Added: 7</span></div>
## **PROTOCOLS**
## Lifecycle {#Lifecycle}
*Defined in [fuchsia.process.lifecycle/lifecycle.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.process.lifecycle/lifecycle.fidl;l=11)*
<p>A component can implement the Lifecycle protocol to be notified of lifecycle
events. The ELF Runner uses this protocol to communicate lifecycle changes
to the component, for more details on how it uses this protocol see:
https://fuchsia.dev/fuchsia-src/concepts/components/v2/elf_runner#lifecycle</p>
### Stop {#Lifecycle.Stop}
<p>The process must clean up its state in preparation for termination, and
must close the channel hosting the <code>Lifecycle</code> protocol when it is
ready to be terminated. The process should exit after it completes its
cleanup. At the discretion of the system the process may be terminated
before it closes the <code>Lifecycle</code> channel.</p>
#### Request {#Lifecycle.Stop_Request}
&lt;EMPTY&gt;