Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(3ncs)

rpc_set_fault_mode(3ncs)

Name

rpc_set_fault_mode − set the fault-handling mode for a server (server only)

Syntax

#include <idl/c/rpc.h>
 unsigned long rpc_$set_fault_mode(state)
unsigned long state;

Arguments

state If ‘true’ (not zero), the server exits when a fault occurs.  If ‘false’ (zero), the server reflects faults back to the client. 

Description

The rpc_$set_fault_mode function controls the handling of faults that occur in user server routines.

In the default mode, the server reflects faults back to the client and continues processing.  Calling rpc_$set_fault_mode with value other than zero for state sets the fault-handling mode so that the server sends an rpc_$comm_failure fault back to the client and exits.  Calling rpc_$set_fault_mode with state equal to zero resets the fault-handling mode to the default. 

This function returns the previous state of the fault-handling mode. 

Diagnostics

This section lists status codes for errors returned by this rpc_$ routine.

rpc_$not_in_call An internal error. 

rpc_$proto_error An internal protocol error. 

Files

/usr/include/idl/c/rpc.h
/usr/include/idl/rpc.idl

See Also

intro(3ncs)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026