The delay between receiving the 'quit' command and killing an engine
that survives that can now be specified through an option (the value
of which will be added to the 50ms default delay). To make this compatible
with WinBoard/XBoard's option -delayAfterQuit, the value is interpreted
as seconds in the Windows compile, and milliseconds otherwise.
if(argc > 1 && !strcmp(argv[1], "debug")) { debug = 1; argc--; argv++; }\r
if(argc > 1 && !strcmp(argv[1], "-var")) { strcpy(varList+1, argv[2]); *varList = ','; argc-=2; argv+=2; }\r
if(argc > 2 && !strcmp(argv[1], "-nice")) { sscanf(argv[2], "%d", &priority); argc-=2; argv+=2; }\r
+ if(argc > 2 && !strcmp(argv[1], "-kill")) { sscanf(argv[2], "%d", &killDelay); argc-=2; argv+=2; }\r
if(argc > 1 && argv[1][0] == '-') { sc = argv[1][1]; argc--; argv++; }\r
if(argc < 2) { printf("usage is: U%cI2WB [debug] [-s] <engine.exe> [<engine directory>]\n", sc-32); exit(-1); }\r
if(argc > 2) dir = argv[2];\r
=head1 SYNOPSIS
-B<uci2wb> [debug] [-var <variant>] [-nice <priority>] [-c|-s|-x] engine [directory]
+B<uci2wb> [debug] [-var <variant>] [-nice <priority>] [-kill <delay>] [-c|-s|-x] engine [directory]
=head1 DESCRIPTION
Runs the engine processes at the requested priority;
positive values lower the priority.
+=item B<-kill <delay>>
+
+Increases the time between receiving a 'quit' command and killing of an engine process
+that somehow could not be made to exit through the normal handling of this (50 ms by default)
+by the specified delay.
+
=item B<debug>
Makes uci2wb report to the GUI everything it receives from the engine,