21 Nov
2024
21 Nov
'24
10:54 a.m.
eric pouech (@epo) commented about programs/timeout/main.c:
+ timeout_message((nobreak == 0) ? STRING_PRESS_KEY : STRING_PRESS_CRTLC); + if (stop) + { + break; + } + if ((nobreak == 0) && _kbhit()) + { + break; + } + Sleep(1000); + } + timeout_message(STRING_END); + +done: + return ret; +} a quick test under windows 10 doesn't seem to match the return values
I get 0 for a normal run (or termination by any key except ctrl-c) 1 for command line syntax error, and ctrl-c being hit in /nobreak mode and STATUS_CTRL_C_EXIT when ctrl-c being hit without /nobreak mode -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6869#note_88287