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