2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright (c) 2015, Joyent, Inc.
13 .\" Copyright 2016 Joyent, Inc.
30 function causes a thread to be considered detached from the rest of the
31 execution environment.
32 While detached threads are still fully observable, they cannot be joined with,
36 In addition, if all non-detached threads have terminated, the program will
37 terminate; detached threads cannot keep a program running.
40 on a thread does not cause it to terminate.
42 Upon successful completion, the
48 indicating that an error has occurred.
49 .Sh INTERFACE STABILITY
54 .Xr pthread_detach 3C ,