06-04-2023, 05:38 PM
@NasaCow
on wikipage of _EXIT you find these instructions:
can you find another way to manage the issue about closing by brute force your program?
on wikipage of _EXIT you find these instructions:
Quote: If a return value is not 0 the program can handle an exit request at a more convenient time if necessary.....
After being read, the _EXIT value is reset to 0 so store the value when a program delays an exit request.
Note: Once _EXIT has been used once, you must monitor your program by checking it for user _EXIT requests.
Don't just use _EXIT once to prevent a user from exiting a program early, as that constitutes bad practice.
can you find another way to manage the issue about closing by brute force your program?