From 683b5dc504dc5d930b617cfba09011e41e51dd16 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 9 Jun 2011 10:13:00 +0200 Subject: [PATCH] version 1.4.55b --- ChangeLog | 3 +++ Makefile.in | 3 ++- config.h | 6 +++--- configure | 20 ++++++++++---------- configure.ac | 2 +- main.c | 5 +++-- polyglot.spec | 2 +- util.c | 10 ++++++++++ util.h | 2 ++ 9 files changed, 35 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0f13117..6f93eb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +=========1.4.55b================ +- Suppression of some error dialogs. +- Small delay in between final error message and actually quitting. =========1.4.54b================ - More graceful handling of engine crashes. - New EngineCommand is now passed through wordexp on Linux. diff --git a/Makefile.in b/Makefile.in index e2ab7de..d6a4340 100644 --- a/Makefile.in +++ b/Makefile.in @@ -39,7 +39,8 @@ subdir = . DIST_COMMON = README $(am__configure_deps) $(dist_doc_DATA) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/config.h.in $(top_srcdir)/configure AUTHORS COPYING \ - ChangeLog INSTALL NEWS TODO depcomp install-sh missing + ChangeLog INSTALL NEWS TODO config.guess config.sub depcomp \ + install-sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ diff --git a/config.h b/config.h index f7c18b8..94159da 100644 --- a/config.h +++ b/config.h @@ -115,13 +115,13 @@ #define PACKAGE_NAME "polyglot" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "polyglot 1.4.54b" +#define PACKAGE_STRING "polyglot 1.4.55b" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "polyglot" /* Define to the version of this package. */ -#define PACKAGE_VERSION "1.4.54b" +#define PACKAGE_VERSION "1.4.55b" /* Define as the return type of signal handlers (`int' or `void'). */ #define RETSIGTYPE void @@ -142,7 +142,7 @@ #define TIME_WITH_SYS_TIME 1 /* Version number of package */ -#define VERSION "1.4.54b" +#define VERSION "1.4.55b" /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ diff --git a/configure b/configure index 1b54161..918d62a 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.63 for polyglot 1.4.54b. +# Generated by GNU Autoconf 2.63 for polyglot 1.4.55b. # # Report bugs to . # @@ -596,8 +596,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='polyglot' PACKAGE_TARNAME='polyglot' -PACKAGE_VERSION='1.4.54b' -PACKAGE_STRING='polyglot 1.4.54b' +PACKAGE_VERSION='1.4.55b' +PACKAGE_STRING='polyglot 1.4.55b' PACKAGE_BUGREPORT='michel.vandenbergh@uhasselt.be' ac_unique_file="mainloop.c" @@ -1284,7 +1284,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures polyglot 1.4.54b to adapt to many kinds of systems. +\`configure' configures polyglot 1.4.55b to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1350,7 +1350,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of polyglot 1.4.54b:";; + short | recursive ) echo "Configuration of polyglot 1.4.55b:";; esac cat <<\_ACEOF @@ -1437,7 +1437,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -polyglot configure 1.4.54b +polyglot configure 1.4.55b generated by GNU Autoconf 2.63 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -1451,7 +1451,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by polyglot $as_me 1.4.54b, which was +It was created by polyglot $as_me 1.4.55b, which was generated by GNU Autoconf 2.63. Invocation command line was $ $0 $@ @@ -2167,7 +2167,7 @@ fi # Define the identity of the package. PACKAGE='polyglot' - VERSION='1.4.54b' + VERSION='1.4.55b' cat >>confdefs.h <<_ACEOF @@ -6995,7 +6995,7 @@ exec 6>&1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by polyglot $as_me 1.4.54b, which was +This file was extended by polyglot $as_me 1.4.55b, which was generated by GNU Autoconf 2.63. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -7058,7 +7058,7 @@ Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_version="\\ -polyglot config.status 1.4.54b +polyglot config.status 1.4.55b configured by $0, generated by GNU Autoconf 2.63, with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" diff --git a/configure.ac b/configure.ac index 8d0ad47..688cde3 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.61) -AC_INIT([polyglot], [1.4.54b], [michel.vandenbergh@uhasselt.be]) +AC_INIT([polyglot], [1.4.55b], [michel.vandenbergh@uhasselt.be]) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([mainloop.c]) AC_CONFIG_HEADER([config.h]) diff --git a/main.c b/main.c index 9b8f483..134a366 100644 --- a/main.c +++ b/main.c @@ -39,7 +39,7 @@ // constants -static const char * const Version = "1.4.54b"; +static const char * const Version = "1.4.55b"; static const char * const HelpMessage = "\ SYNTAX\n\ * polyglot [configfile] [-noini] [-ec engine] [-ed enginedirectory] [-en enginename] [-log] [-lf logfile] [-hash value] [-bk book] [-pg =]* [-uci =]*\n\ @@ -641,7 +641,8 @@ void quit() { engine_close(Engine); } - my_log("POLYGLOT Calling exit\n"); + my_sleep(200); + my_log("POLYGLOT Calling exit\n"); exit(EXIT_SUCCESS); } diff --git a/polyglot.spec b/polyglot.spec index 15b1bd1..a3462ca 100644 --- a/polyglot.spec +++ b/polyglot.spec @@ -1,6 +1,6 @@ Summary: A Winboard protocol to UCI protocol adapter Name: polyglot -Version: 1.4.54b +Version: 1.4.55b Release: 1 License: GPL Group: Amusement/Games diff --git a/util.c b/util.c index a3fb3ba..06f868d 100644 --- a/util.c +++ b/util.c @@ -514,3 +514,13 @@ void my_quote(char *out, const char *in, const char *special){ } +void my_sleep(int msec){ +#ifndef _WIN32 + struct timespec tm; + tm.tv_sec=msec/1000; + tm.tv_nsec=1000000*(msec%1000); + nanosleep(&tm,NULL); +#else + Sleep(msec); +#endif +} diff --git a/util.h b/util.h index 269310d..3855a82 100644 --- a/util.h +++ b/util.h @@ -185,6 +185,8 @@ extern void my_quote (char *out, const char *in, const char *special); +extern void my_sleep (int msec); + #endif // !defined UTIL_H // end of util.h -- 1.7.0.4