I made the following observation on Windows. When I terminate the task through task manager or press the "x" button it returns true and when the app terminates with a close() it returns false.
Anyway, I think it may has something to do with the signals the OS emits, SIGTERM, SIGKILL and SIGINT and how they make the application close. Not sure though and also curious about what's happening!!




Reply With Quote
Bookmarks