[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why does close_stdout close stdout and stderr?
From: |
Florian Weimer |
Subject: |
Re: Why does close_stdout close stdout and stderr? |
Date: |
Fri, 10 May 2019 09:31:46 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
* Kamil Dudka:
> On Friday, May 10, 2019 12:17:11 AM CEST Paul Eggert wrote:
>> On 5/8/19 11:39 PM, Florian Weimer wrote:
>> > atexit handlers run before ELF destructors (and some C++ destructors).
>> > There can also be multiple such handlers. So it's not true that an
>> > atexit handler always runs last.
>>
>> OK, but this shouldn't be a problem with any applications currently
>> using close_stdout. At least, none of the applications I know about.
>
> How would you know if they did?
>
> As long as you link libraries dynamically, any of the directly or indirectly
> linked libraries can introduce an ELF destructor or atexit() handler anytime,
> which would take an immediate effect even on your already built applications.
> People also like to use instrumentation libraries enforced by LD_PRELOAD in
> their test environment. Those can easily clash with such cleanup handlers.
Right. And I found close_stdout after someone reported problems with an
LD_PRELOAD-like mechanism and its logging output. For some users, this
is an actual problem.
Thanks,
Florian
- Re: Why does close_stdout close stdout and stderr?, Florian Weimer, 2019/05/06
- Re: Why does close_stdout close stdout and stderr?, Bernhard Voelker, 2019/05/06
- Re: Why does close_stdout close stdout and stderr?, Florian Weimer, 2019/05/06
- Re: Why does close_stdout close stdout and stderr?, Bernhard Voelker, 2019/05/06
- Re: Why does close_stdout close stdout and stderr?, Florian Weimer, 2019/05/06
- Re: Why does close_stdout close stdout and stderr?, Bernhard Voelker, 2019/05/09
- Re: Why does close_stdout close stdout and stderr?, Florian Weimer, 2019/05/09
- Re: Why does close_stdout close stdout and stderr?, Bernhard Voelker, 2019/05/09
- Re: Why does close_stdout close stdout and stderr?, Paul Eggert, 2019/05/09
- Re: Why does close_stdout close stdout and stderr?, Kamil Dudka, 2019/05/10
- Re: Why does close_stdout close stdout and stderr?,
Florian Weimer <=
- Re: Why does close_stdout close stdout and stderr?, Paul Eggert, 2019/05/12
- Re: Why does close_stdout close stdout and stderr?, Florian Weimer, 2019/05/13
- Re: Why does close_stdout close stdout and stderr?, Paul Eggert, 2019/05/24
- Re: Why does close_stdout close stdout and stderr?, Bruno Haible, 2019/05/25
- Re: Why does close_stdout close stdout and stderr?, Florian Weimer, 2019/05/27
- Re: Why does close_stdout close stdout and stderr?, Bruno Haible, 2019/05/25
- Re: Why does close_stdout close stdout and stderr?, Paul Eggert, 2019/05/25
- Re: Why does close_stdout close stdout and stderr?, Florian Weimer, 2019/05/27
- Re: Why does close_stdout close stdout and stderr?, Bruno Haible, 2019/05/27
Re: Why does close_stdout close stdout and stderr?, Paul Eggert, 2019/05/06