Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
System Calls_lwp_exit(2)


NAME

 _lwp_exit - terminate the calling LWP

SYNOPSIS

 
#include <sys/lwp.h>
void _lwp_exit(void);

DESCRIPTION

 

The _lwp_exit() function causes the calling LWP to terminate. If it is the last non-daemon LWP in the process, the process exits with a status of 0 (see exit(2)).

If the LWP was created undetached, it is transformed into a "zombie LWP" that retains at least the LWP's ID until it is waited for (see _lwp_wait(2)). Otherwise, its ID and system resources may be reclaimed immediately.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelAsync-Signal-Safe

SEE ALSO

 

_lwp_create(2), _lwp_detach(2), _lwp_wait(2), exit(2), attributes(5)


SunOS 5.9Go To TopLast Changed 30 Jul 1992

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.