Hanging thread as alternative to aborting?


#1

Hello,

In the absence of unwinding (e.g. rust-lang/rfcs#471 [1]) has anybody given serious thought to the possibility of just hanging the thread on a panic as an alternative to aborting?

This would of course mean leaking memory, potentially holding locks indefinitely etc… However I can think of a few scenarios where this could be preferable to an abort (some of the rest of the system can continue, allowing it to shut down more gracefully).

Cheers,

Phil

[1] https://github.com/rust-lang/rfcs/issues/471