mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 10:49:48 +02:00
- added more debug info for headless server conole results
This commit is contained in:
@@ -3553,6 +3553,16 @@ int glestMain(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef WIN32
|
#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) {
|
if(pollresult < 0) {
|
||||||
printf("pollresult = %d errno = %d [%s]\n",pollresult,pollerror,strerror(pollerror));
|
printf("pollresult = %d errno = %d [%s]\n",pollresult,pollerror,strerror(pollerror));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user