Hi. How I can handle shutdown of my k/n applicati...
# kotlin-native
c
Hi. How I can handle shutdown of my k/n application? (without listening OS signals)
n
Are you talking about a program running on a Unix based OS (eg Linux)?
c
Yep. Linux, Windows (MinGW), Macos
console application
n
As far as I'm aware listening to OS signals is the only way on Unix based platforms. Windows by the way isn't a Unix based OS (eg doesn't use the POSIX library).
c
Yes, i known. Now I handle terminate using signals. But this is not convenient if you are writing some kind of library
j
check a kill-switch in the inner most event loop