Subject Re: [Firebird-Architect] Shutdown Call, take 2
Author Arno Brinkman
Hi,

> The call:
>
> int fb_shutdown (int type, int milliseconds);
>
> where "type" is one of:
>
> * fb_shutdown_count -- just return number of active connections
> * fb_shutdown_attachments -- block new attachments, wait (see below)
> for pending to exit
> * fb_shutdown_transactions -- block new attachments and transaction,
> wait for pending to finish
> * fb_shutdown_verbs -- block new calls, wait for pending to finish
> * fb_shutdown_immediate -- stop pending verbs w/ clean error
> * fb_shutdown_panic -- shutdown as fast as cleanly possible
>
> and "milliseconds" is a period to wait, where milliseconds < 0 means
> don't wait, milliseconds == 0 means wait indefinitely, and milliseconds
> > 0 means wait for that number of milliseconds before timing out.
>
> All flavors return the number of active connections.

When wait has been elapsed and there are still attachments. The shutdown is
canceled i guess or does it then fb_shutdown_immediate ?

Regards,
Arno Brinkman
ABVisie

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Firebird open source database (based on IB-OE) with many SQL-99 features :
http://www.firebirdsql.org
http://www.firebirdsql.info
http://www.fingerbird.de/
http://www.comunidade-firebird.org/

Support list for Interbase and Firebird users :
firebird-support@yahoogroups.com

Nederlandse firebird nieuwsgroep :
news://80.126.130.81