rpc_set_fault_mode(3ncs)rpc_set_fault_mode(3ncs)Namerpc_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 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 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 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 routine.
rpc_$not_in_call An internal error.
rpc_$proto_error An internal protocol error.
FilesSee Alsointro(3ncs)rpc_set_fault_mode(3ncs)