If a K/N program is running within the `try` secti...
# kotlin-native
s
If a K/N program is running within the
try
section of some code, and a SIGINT signal is received, will the
finally
block attached to that
try
be executed before the program closes?
d
Was wondering this too. I have a feeling it doesn't run, since it's not an exception.
s
That's my thought too, but I can't think of any other way to do non-static resource cleanup on SIGINT with C interop. The Java way doesn't work, since the static C functions can't access non-static properties or functions...