| 51 | static stack<task_t*> g_readwrite; |
| 52 | static int g_listen_fd = -1; |
| 53 | static int SetNonBlock(int iSock) |
| 54 | { |
| 55 | int iFlags; |
| 56 | |
| 57 | iFlags = fcntl(iSock, F_GETFL, 0); |
| 58 | iFlags |= O_NONBLOCK; |
| 59 | iFlags |= O_NDELAY; |
| 60 | int ret = fcntl(iSock, F_SETFL, iFlags); |
| 61 | return ret; |
| 62 | } |
| 63 | |
| 64 | static void *readwrite_routine( void *arg ) |
| 65 | { |
no test coverage detected