blob: a3f524232a693c8d5f4f9173b0ea3bfeeed03ad9 [file] [log] [blame] [view] [edit]
# zx_task_kill
## NAME
task_kill - Kill the provided task.
## SYNOPSIS
```
#include <zircon/syscalls.h>
zx_status_t zx_task_kill(zx_handle_t handle);
```
## DESCRIPTION
This kills the given process, thread or job.
If a process or thread uses this syscall to kill itself, this syscall does
not return.
## RETURN VALUE
## ERRORS
**ZX_ERR_ACCESS_DENIED** *handle* does not have **ZX_RIGHT_DESTROY**.
## SEE ALSO