Availability:
:- use_module(library(tipc/tipc_linda)).
out(server_quit)
, the server's Prolog process
will exit via halt/1. It is intended for
use in scripting as follows:
swipl -q -g 'use_module(library(tipc/tipc_linda)), tipc_linda_server' -t 'halt(1)'
See also manual section 2.10.2.1 Using PrologScript.
Note: Prolog will return a non-zero exit status if this predicate is executed on a cluster that already has an active server. An exit status of zero is returned on graceful shutdown.
- throws
- error(
permission_error(halt,thread,2)
,context(halt/1,Only from thread’main’)), if this predicate is executed in a thread other thanmain
.