跳转至

zx_process_exit

SUMMARY

Exits the currently running process.

DECLARATION

#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()zx_process_create()


最后更新: 2022 年 12 月 31 日(Saturday) 21:07 CST