- added more debug info for headless server conole results

This commit is contained in:
Mark Vejvoda 2011-12-01 19:45:46 +00:00
parent d8f4c69a01
commit 27c4b2f629
1 changed files with 10 additions and 0 deletions

View File

@ -3553,6 +3553,16 @@ int glestMain(int argc, char** argv) {
}
#ifndef WIN32
if (cinfd[0].revents & POLLNVAL) {
printf("invalid file descriptor\n");
}
if (cinfd[0].revents & POLLERR) {
printf("error in file descriptor\n");
}
if (cinfd[0].revents & POLLHUP) {
printf("hang up in file descriptor\n");
}
if(pollresult < 0) {
printf("pollresult = %d errno = %d [%s]\n",pollresult,pollerror,strerror(pollerror));