]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
From libthr, remove special and strange code to set up session and
authorkib <kib@FreeBSD.org>
Mon, 21 Mar 2016 06:46:16 +0000 (06:46 +0000)
committerkib <kib@FreeBSD.org>
Mon, 21 Mar 2016 06:46:16 +0000 (06:46 +0000)
commit1e240521d214b088e33747a9cf9abbc4baae993f
treeee79c95a5699a3d95b3bb0057274100a44afc747
parent9e847808a65ae1c95f6f166ab77d0c6f77b0e58c
From libthr, remove special and strange code to set up session and
control terminal, activated when running with pid 1.  It is
application duty to handle this, and unsuspecting init replacements
which are linked with libthr would be broken by this.

The pre-resolving of getpid() is restored, just in case.

Reviewed by: jilles
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
lib/libthr/thread/thr_init.c
lib/libthr/thread/thr_rtld.c