Subversion Repositories Tewi

Rev

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

Rev 249 Rev 253
Line 1... Line 1...
1
/* $Id: main.c 249 2024-10-03 20:59:55Z nishi $ */
1
/* $Id: main.c 253 2024-10-04 03:13:36Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 524... Line 524...
524
	free(rows);
524
	free(rows);
525
}
525
}
526
 
526
 
527
#endif
527
#endif
528
 
528
 
529
#if !defined(BUILD_GUI) || !(defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__))
529
#if !defined(BUILD_GUI_VALID)
530
int main(int argc, char** argv) {
530
int main(int argc, char** argv) {
531
	int st;
531
	int st;
532
	logfile = stderr;
532
	logfile = stderr;
533
#ifdef SERVICE
533
#ifdef SERVICE
534
	SERVICE_TABLE_ENTRY table[] = {{"Tewi HTTPd", servmain}, {NULL, NULL}};
534
	SERVICE_TABLE_ENTRY table[] = {{"Tewi HTTPd", servmain}, {NULL, NULL}};
Line 794... Line 794...
794
	cm_force_log(r);
794
	cm_force_log(r);
795
	free(r);
795
	free(r);
796
#if !defined(__MINGW32__) && !defined(_MSC_VER) && !defined(__BORLANDC__) && !defined(__WATCOMC__)
796
#if !defined(__MINGW32__) && !defined(_MSC_VER) && !defined(__BORLANDC__) && !defined(__WATCOMC__)
797
	signal(SIGCHLD, SIG_IGN);
797
	signal(SIGCHLD, SIG_IGN);
798
	signal(SIGPIPE, SIG_IGN);
798
	signal(SIGPIPE, SIG_IGN);
799
#else
799
#elif !defined(BUILD_GUI)
800
	SetConsoleTitle(tw_server);
800
	SetConsoleTitle(tw_server);
801
#endif
801
#endif
802
	return -1;
802
	return -1;
803
}
803
}