taskdestroy(3P)

taskdestroy - destroy a task

As shipped in IRIX 6.5.22. Unchanged since IRIX 6.5.

NAME
     taskdestroy - 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 ALSO
     sproc(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.