TASKDESTROY(3P) TASKDESTROY(3P)
taskdestroy - destroy a task
#include <sys/types.h>
#include <task.h>
int taskdestroy (tid_t tid);
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.
sproc(2), taskblock(3P), taskctl(3P), taskcreate(3P).
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.
PPPPaaaaggggeeee 1111 [ Back ]
|