https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101773

--- Comment #2 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> ---
An immediate exit() might yield other files, the terminal, etc. in a bad state.
IMHO, the best thing to do is to stop attempting to write to the file (possibly
attempt to remove it, but this might fail), and at the end, exit() with a
nonzero exit status.

Reply via email to