TASKDESTROY(3P)TASKDESTROY(3P)NAMEtaskdestroy - destroy a task
C SYNOPSIS
#include <sys/types.h>
#include <task.h>
int taskdestroy (tid_t tid);
DESCRIPTION
Taskdestroy causes the named task to be destroyed. Any task within a
process can destroy any other task in that process.
Taskdestroy will fail and no task will be destroyed if the following is
true:
[EINVAL] The tid specified is not a valid task id for the calling
process.
SEE ALSOsproc(2), taskblock(3P), taskctl(3P), taskcreate(3P).
DIAGNOSTICS
Upon successful completion, taskdestroy returns 0. Otherwise, a value of
-1 is returned to the calling task, and errno is set to indicate the
error.
Page 1