Product Documentation

c-treeACE V11.0 Update Guide

Previous Topic

Next Topic

CloseConnection API Function to Cleanly Shut Down a Forked Connection

Forking a process with an active server connection causes the child and parent processes to each have a reference to the same connection. A new function, CLCONN(), was introduced to clean up one copy of this connection without breaking the other connection.

Declaration

ctCONV COUNT ctDECL CLCONN( VOID );

Short name

CLCONN()

Description

When a process with an active c-tree connection is forked and does not call exec(), CLCONN should be called by one of the resulting processes to clean up an existing connection rather than calling CLISAM().

This function is only available in client models.

TOCIndex