Hi.
How I can handle shutdown of my k/n application? (without listening OS signals)
n
napperley
12/17/2021, 11:19 PM
Are you talking about a program running on a Unix based OS (eg Linux)?
c
caffeine
12/17/2021, 11:29 PM
Yep. Linux, Windows (MinGW), Macos
caffeine
12/17/2021, 11:29 PM
console application
n
napperley
12/17/2021, 11:53 PM
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
caffeine
12/18/2021, 12:09 AM
Yes, i known. Now I handle terminate using signals. But this is not convenient if you are writing some kind of library