Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Dec 2011 14:12:29 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Xin LI <delphij@gmail.com>
Cc:        Kostik Belousov <kostikbel@gmail.com>, arch@freebsd.org, kan@freebsd.org
Subject:   Re: fdlopen(3)
Message-ID:  <867h1enqyq.fsf@ds4.des.no>
In-Reply-To: <CAGMYy3u7PTEOpf537X5Dbp998zna5Qv5h2-gjwschGDYb%2B2nuQ@mail.gmail.com> (Xin LI's message of "Thu, 29 Dec 2011 10:20:41 -0800")
References:  <20111229084308.GD50300@deviant.kiev.zoral.com.ua> <CAGMYy3u6v-Ypo_wJEqWWGgGUjoTr=Ctx6tn6VV4fWM4nTYonrQ@mail.gmail.com> <20111229113829.GF50300@deviant.kiev.zoral.com.ua> <CAGMYy3u7PTEOpf537X5Dbp998zna5Qv5h2-gjwschGDYb%2B2nuQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Xin LI <delphij@gmail.com> writes:
> Kostik Belousov <kostikbel@gmail.com> writes:
> > Xin LI <delphij@gmail.com> writes:
> > > Will this prevent e.g. writes to the .so file after open, but
> > > before fdlopen()?
> > How can it ? Even in theory ?
> e.g. process 1 open(), check for permissions, etc., then process 2
> open() for write, write something, then process proceed with
> fdlopen()?  (We do not have mandatory "lock" on file handles to
> prevent writing I think?).

I think Kostik meant "how could you, even in theory, prevent this from
happening", and the answer is that you can't.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



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