1# zx_process_exit 2 3## NAME 4 5<!-- Updated by update-docs-from-abigen, do not edit. --> 6 7process_exit - Exits the currently running process. 8 9## SYNOPSIS 10 11<!-- Updated by update-docs-from-abigen, do not edit. --> 12 13``` 14#include <zircon/syscalls.h> 15 16[[noreturn]] void zx_process_exit(int64_t retcode); 17``` 18 19## DESCRIPTION 20 21The `zx_process_exit()` call ends the calling process with the given 22return code. The return code of a process can be queried via the 23**ZX_INFO_PROCESS** request to [`zx_object_get_info()`]. 24 25## RIGHTS 26 27<!-- Updated by update-docs-from-abigen, do not edit. --> 28 29TODO(ZX-2399) 30 31## RETURN VALUE 32 33`zx_process_exit()` does not return. 34 35## ERRORS 36 37`zx_process_exit()` cannot fail. 38 39## SEE ALSO 40 41 - [`zx_object_get_info()`] 42 - [`zx_process_create()`] 43 44<!-- References updated by update-docs-from-abigen, do not edit. --> 45 46[`zx_object_get_info()`]: object_get_info.md 47[`zx_process_create()`]: process_create.md 48