blob: 7cda0abdb543333e2658fca2c5e2fa08d329582d [file] [log] [blame] [view] [edit]
<!--
Copyright 2023 The Fuchsia Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
DO NOT EDIT. Generated from FIDL library zx by zither, a Fuchsia platform tool.
See //docs/reference/syscalls/README.md#documentation-generation for
regeneration instructions.
-->
# zx_process_exit
## Summary
Exits the currently running process.
## Declaration
```c
#include <zircon/syscalls.h>
[[noreturn]] void zx_process_exit(int64_t retcode);
```
## Description
The `zx_process_exit()` call ends the calling process with the given
return code. The return code of a process can be queried via the
**ZX_INFO_PROCESS** request to [`zx_object_get_info()`].
## Rights
None.
## Return value
`zx_process_exit()` does not return.
## Errors
`zx_process_exit()` cannot fail.
## See also
- [`zx_object_get_info()`]
- [`zx_process_create()`]
[`zx_object_get_info()`]: object_get_info.md
[`zx_process_create()`]: process_create.md