This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Do not leave files behind in /tmp from testing


On Thu, 15 Oct 2015, Roland McGrath wrote:

> What I meant was that it's a regression in the parity of behavior between
> normal and TEST_DIRECT cases.  In the TEST_DIRECT case, there is no fork.
> The only way that files get cleaned up is if they are in entered into the
> temp_name_list in the PREPARE phase.

I don't see why that would be the case.  delete_temp_files is called 
(only) via atexit - that applies whether or not there's a fork, and 
delete_temp_files should be called whether exit it called or the program 
returns from main (the case of calling _exit, and so not calling atexit 
handlers, doesn't apply to this test).  It shouldn't matter at all which 
phase the files get entered into temp_name_list in.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]