diff --git a/Changes b/Changes index e3c1027b2..5bf8c1fc8 100644 --- a/Changes +++ b/Changes @@ -1523,3 +1523,10 @@ seen. gmtime warning still there - Stripped the docs. 100kb down, but a reformat in something other than MS word would really really help. - Changed version to beta12 +- Add config option to the unreal service utility options are: + unreal config startup auto|manual + auto starts the service when the pc boots, manual requires you to run Unreal manually + unreal config crashrestart delay (2k/XP only) + specifies how long to wait after a crash to restart Unreal (in minutes). If no delay is + specified, no action is taken when a crash occurs +- Made some changes to the win32 resolver, hopefully this will fix the crash bugs diff --git a/src/res.c b/src/res.c index 08ac4e28a..5d63cf771 100644 --- a/src/res.c +++ b/src/res.c @@ -445,12 +445,8 @@ struct hostent *gethost_byname(char *name, Link *lp) #endif if (!lp) return NULL; -#ifndef _WIN32 (void)do_query_name(lp, name, NULL); return NULL; -#else - return gethostbyname(name); -#endif } struct hostent *gethost_byaddr(char *addr, Link *lp) @@ -472,7 +468,6 @@ struct hostent *gethost_byaddr(char *addr, Link *lp) static int do_query_name(Link *lp, char *name, ResRQ *rptr) { -//#ifndef _WIN32 char hname[HOSTLEN + 1]; int len; diff --git a/src/win32/unreal.c b/src/win32/unreal.c index 81bf3282c..df1818cb9 100644 --- a/src/win32/unreal.c +++ b/src/win32/unreal.c @@ -20,10 +20,14 @@ #include #include #include +static OSVERSIONINFO VerInfo; #define IRCD_SERVICE_CONTROL_REHASH 128 void show_usage() { - fprintf(stderr, "unreal start|stop|rehash|restart|install|uninstall"); + fprintf(stderr, "unreal start|stop|rehash|restart|install|uninstall|config