comparison upreckon/_unixmodule.cpp @ 210:8c4e92fb32d8

Keyboard interrupts now satisfy the Press any key to exit... prompt
author Oleg Oshmyan <chortos@inbox.lv>
date Thu, 18 Aug 2011 02:51:31 +0300
parents 4f69e30abbd5
children 65b5c9390010
comparison
equal deleted inserted replaced
209:c03a8113685d 210:8c4e92fb32d8
1274 { 1274 {
1275 #ifdef HAVE_TERMIOS_H 1275 #ifdef HAVE_TERMIOS_H
1276 if (catch_escape) 1276 if (catch_escape)
1277 { 1277 {
1278 char c; 1278 char c;
1279 while (read(0, &c, 1) == -1 && errno == EINTR); 1279 while (read(0, &c, 1) == -1 && errno == EINTR)
1280 {
1281 if (PyErr_CheckSignals() == -1)
1282 {
1283 return NULL;
1284 }
1285 }
1280 } 1286 }
1281 #endif 1287 #endif
1282 Py_RETURN_NONE; 1288 Py_RETURN_NONE;
1283 } 1289 }
1284 1290