No, James, I don't believe it's appropriate. Usage of exit() is
definitely on topic. But the behavior of exit() when called from a DLL
is specifically off topic.
I would hope that the behavior of exit() when called from within a DLL
(whatever that may be) is not any different from what the standard has to
say about the behavior of exit() when called; otherwise the implementation
would seem to be non-conforming. Therefore, I do not see, how the answer to
the question depends on the DLL-issue.
As far as I can see, the OP mentioned DLLs just to indicate that he was
prepared to hear that, from within DLLs, there are special rules. That the
standard does not provide those rules does not render the question
off-topic but just allows for a simpler answer.
OK, I'll concede the point. Sorry if I came off as a bit of a pig.