format, and fix platform
git-svn-id: file:///raid/svn-personal/tewi/trunk@104 8739d7e6-ffea-ec47-b151-bdff447c6205
This commit is contained in:
parent
7119126027
commit
7fc3ad43a7
|
@ -74,7 +74,7 @@ int tw_http_parse(SSL* ssl, int sock, struct tw_http_request* req) {
|
||||||
#ifdef __HAIKU__
|
#ifdef __HAIKU__
|
||||||
int n = select(32, &fds, NULL, NULL, &tv);
|
int n = select(32, &fds, NULL, NULL, &tv);
|
||||||
#else
|
#else
|
||||||
int n = select(FD_SETSIZE, &fds, NULL, NULL, &tv);
|
int n = select(FD_SETSIZE, &fds, NULL, NULL, &tv);
|
||||||
#endif
|
#endif
|
||||||
if(n <= 0) {
|
if(n <= 0) {
|
||||||
cm_log("HTTP", "Timeout, disconncting");
|
cm_log("HTTP", "Timeout, disconncting");
|
||||||
|
|
|
@ -833,11 +833,11 @@ void tw_server_loop(void) {
|
||||||
if(threads[j].used) {
|
if(threads[j].used) {
|
||||||
thread_info info;
|
thread_info info;
|
||||||
bool kill = false;
|
bool kill = false;
|
||||||
if(get_thread_info(threads[j].thread, &info) == B_OK){
|
if(get_thread_info(threads[j].thread, &info) == B_OK) {
|
||||||
}else{
|
} else {
|
||||||
kill = true;
|
kill = true;
|
||||||
}
|
}
|
||||||
if(kill){
|
if(kill) {
|
||||||
threads[j].used = false;
|
threads[j].used = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ const char* tw_version = TW_VERSION;
|
||||||
|
|
||||||
const char* tw_platform =
|
const char* tw_platform =
|
||||||
#if defined(PLATFORM)
|
#if defined(PLATFORM)
|
||||||
PLATFORMM
|
PLATFORM
|
||||||
#elif defined(__NetBSD__)
|
#elif defined(__NetBSD__)
|
||||||
"NetBSD"
|
"NetBSD"
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user