Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Mar 2016 16:26:54 +0100
From:      Jilles Tjoelker <jilles@stack.nl>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        threads@freebsd.org
Subject:   Re: Removing the pid 1 code
Message-ID:  <20160320152654.GA55504@stack.nl>
In-Reply-To: <20160319200826.GF1741@kib.kiev.ua>
References:  <20160319200826.GF1741@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 19, 2016 at 10:08:26PM +0200, Konstantin Belousov wrote:
> We have very special code executed during the libthr initialisation,
> which attempts to set up session and controlling terminal when running
> as pid 1. I do not see why do we need this, e.g. why behaviour of
> a program must be different due to the presence of libthr and running as
> pid 1.  The code is there from 1998' libc_r.

> Please either provide arguments why should we do that, or agree with
> the following change.  I decided to pre-resolve getpid() just in case,
> as it is done by the current code, but even this is probably not neccessary.

I agree this should be removed. It might cause /rescue/init to behave
strangely, for example.

This change might break rare applications, so mentioning it in the
release notes is wise. The applications will be easy to fix.

-- 
Jilles Tjoelker



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160320152654.GA55504>