minor timeing tweaks documented

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@38303 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2015-01-27 14:56:39 +00:00
parent 177efca91b
commit 6c3236d16f
2 changed files with 13 additions and 5 deletions

12
ECCL.h
View file

@ -137,9 +137,15 @@
<section>
<heading>The Terminate command line tool</heading>
<p>The Terminate command line tool provides a mechanism to shut down
an ECCL host. This tool contacts a Command server and tells it to
shut down all it's local client process and the shut itsself down.
<p>The Terminate command line tool provides a mechanism to shut
down an ECCL host. This tool contacts a Command server and
tells it to shut down all it's local client process and then
shut itsself down.<br />
Each client of the Command server is given thirty seconds to
shut down gracefully, and if it has not shut down when this
period is over, the Command server is free to kill it.<br />
You can expect Command servers to have shut down within forty
seconds of the Terminate command being run.
</p>
<p>You may use '-CommandHost' and '-CommandName' to specify a Command
server to contact, otherwise the default local Command server is

View file

@ -2320,11 +2320,13 @@ static NSString* cmdWord(NSArray* a, unsigned int pos)
NSDate *when;
/* We tell all connected clients to quit ... allow at most 30 seconds.
/* We tell all connected clients to quit ...
* clients are allowed 30 seconds to terminate
* (though we give them 35 to allow for delays).
*/
a = [[clients mutableCopy] autorelease];
i = [a count];
when = [NSDate dateWithTimeIntervalSinceNow: 30.0 - DLY];
when = [NSDate dateWithTimeIntervalSinceNow: 35.0 - DLY];
while (i-- > 0)
{
EcClientI *c = [a objectAtIndex: i];