|
From: Jeremy F. <je...@go...> - 2005-06-17 05:43:13
|
Julian Seward wrote:
>Jeremy, Ashley,
>
>I appreciate you both looking into this. I'm unclear as to whether
>you grokked that I changed the exit semantics in the 3 line a couple
>of weeks back to use the "last-one-out-turn-out-the-lights" semantics.
>As a result (following some further GDT-copying entertainment) the
>Elan3 driver now runs fine on Valgrind, and nothing else appears to
>be broken as a result.
>
I still think that's a bad idea in general. It probably won't make much
practical difference in normal NPTL programs, since all threads exit
simultaneously on exit_group, and if the initial thread is the one doing
the exit(), it will generally be the last one out. But if you have a
program which exit()s from another thread, and you use leak checking or
some other time-consuming post-exit processing, there'll be a window in
which the program has appeared to exit but output hasn't been produced.
J
|