-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Milestone
Description
It would probably be better to use abort()
on platforms that can usefully support it (at least Unix) so that the process exits abnormally - on Unix platforms, being killed by a fatal signal is distinguishable from exiting normally, and abort()
is documented to make the process kill itself with SIGABRT
, which will often leave a core dump.
abort()
is guaranteed by C99, but on e.g. Windows I know that SDL tries to avoid mandatory libc dependencies, so probably it can't use abort()
and an ordinary exit status is the best (or least-bad) thing to do here. Or I suppose perhaps it could intentionally crash by executing a trap instruction or something?
Originally posted by @smcv in #13943 (comment)
Metadata
Metadata
Assignees
Labels
No labels