- on console error show proper error message

This commit is contained in:
Mark Vejvoda 2011-11-16 04:39:26 +00:00
parent 204d2bea86
commit 3e3bcb6af8

View File

@ -3468,7 +3468,7 @@ int glestMain(int argc, char** argv) {
#ifndef WIN32
if(pollresult < 0) {
printf("pollresult = %d errno = %d\n",pollresult,pollerror);
printf("pollresult = %d errno = %d [%s]\n",pollresult,pollerror,strerror(pollerror));
cinfd[0].fd = fileno(stdin);
cinfd[0].events = POLLIN;