Public Comment Number PC-UK0270 ISO/IEC CD2 9899 (SC22N2794) Public Comment =========================================== Date: 1998-09-22 Author: N.M Maclaren Author Affiliation: Self Postal Address: University of Cambridge, Computer Laboratory, New Museums Site, Pembroke Street, Cambridge CB3 3QG, United Kingdom E-mail Address: Telephone Number: +44 1223 334761 Fax Number: +44 1223 334679 Category: Request for information/clarification Committee Draft subsection: 7.20.4.2, 7.20.4.3 Title: Ambiguity in when exit calls atexit functions Detailed description: It is unclear whether exit calls functions registered by atexit as if it were a normal function, or whether it may unwind the stack to the entry to main before doing so. This affects whether it is legal to call longjmp to leave an atexit function to return to a location set up by a call of setjmp before the call of exit. This should be clarified, which could include making it explicitly undefined.