.th K_release_process II 4/21/86
.sh NAME
K_release_process - kill a process
.sh "MODULA SYNOPSIS"
.nh
.na
 CONST procSeid: seid;
.br
 VAR stat: K_err_num;
.br
 . . .
.br
 stat := NK_release_process(procSeid);
.br
.hy
.ad
.sp
.sh "C SYNOPSIS"
.nh
.na
 seid procSeid;
.br
 int stat;
.br
 . . .
.br
 stat = K_release_process (procSeid);
.br
.hy
.ad
.sh DESCRIPTION
K_release_process deallocates all of the Kernel level resources
associated with the named process.  A K_release_process call with the
null_seid argument releases the calling process.  Only a process with
the same owner or a process privileged to change its owner may issue a
K_release_process for another process.  Issuing a K_release_process
call results in a K_close of all open files and a K_release_segment of
all the segments of the process.  Shared segments remain intact unless
the reference count to the segment has reached zero.  Segments with a
zero reference count are deallocated unless they have been created to
be `sticky'.  As a result of the implicit K_release_segment, any locked
segment is unlocked.  Files are deallocated if their link counts and
open counts are zero.  The process seid becomes unknown.
.sh EXCEPTIONS
.lp 22 15
XbPrSd	Bad process seid.
.i0
.sh "SEE ALSO"
K_close(II), K_release_segment(II), K_unlock(II)
