Subversion Repositories Tewi

Rev

Rev 296 | Rev 303 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 296 Rev 302
Line 1... Line 1...
1
/* $Id: server.c 296 2024-10-09 11:13:35Z nishi $ */
1
/* $Id: server.c 302 2024-10-10 02:07:38Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 950... Line 950...
950
	for(i = 0; i < sizeof(threads) / sizeof(threads[0]); i++) {
950
	for(i = 0; i < sizeof(threads) / sizeof(threads[0]); i++) {
951
		threads[i].used = false;
951
		threads[i].used = false;
952
	}
952
	}
953
#endif
953
#endif
954
#ifdef USE_POLL
954
#ifdef USE_POLL
955
	struct pollfd pollfds[sockcount];
955
	struct pollfd* pollfds = malloc(sizeof(*pollfds) * sockcount);
956
	for(i = 0; i < sockcount; i++) {
956
	for(i = 0; i < sockcount; i++) {
957
		pollfds[i].fd = sockets[i];
957
		pollfds[i].fd = sockets[i];
958
		pollfds[i].events = POLLIN | POLLPRI;
958
		pollfds[i].events = POLLIN | POLLPRI;
959
	}
959
	}
960
#endif
960
#endif