man.bsd.lv manual page server

Manual Page Search Parameters

_LWP_EXIT(2) System Calls Manual _LWP_EXIT(2)

_lwp_exitterminate the calling light-weight process

library “libc”

#include <lwp.h>

void
_lwp_exit(void);

() terminates the calling LWP. If it is the last LWP in the process, the process exits with a status of 0. If the LWP was not created in a detached state, then the system will not reclaim its LWP ID until its status is reported to another LWP in the process via _lwp_wait(2).

_lwp_exit() can never return.

_exit(2), _lwp_create(2), _lwp_wait(2)

The _lwp_exit() system call first appeared in NetBSD 2.0.

January 13, 2003 NetBSD-9.2