ox_reset
,ox_intr
,register_handler
SIGINT
to an OpenXM server
ox_reset()
resets a process whose identifier is number.
After its execution the process is ready for receiving data.
ox_reset()
, sending/receiving buffers and
stream buffers are assured to be empty.
ox_reset()
may be used prior to a distirbuted computation.
It can be also used to interrupt a distributed computation.
ox_intr()
sends SIGINT
to a process whose identifier is
number. The action of a server against SIGINT
is not
specified in OpenXM. `ox_asir' immediately enters the debug
mode and pops up an window to input debug commands on X window system.
register_handler()
registers a function func().
If u is specified on a keybord interrupt, func()
is executed before returning the toplevel.
If ox_reset()
calls are included in func(),
one can automatically reset OpenXM servers on a keyboard interrupt.
[10] ox_launch(); 0 [11] ox_rpc(0,"fctr",x^100-y^100); 0 [12] ox_reset(0); /* usr1 : return to toplevel by SIGUSR1 */ 1 /* is displayed on the xterm. */
[340] Procs=[ox_launch(),ox_launch()]; [0,1] [341] def reset() { extern Procs; map(ox_reset,Procs);} [342] map(ox_rpc,Procs,"fctr",x^100-y^100); [0,0] [343] register_handler(reset); 1 [344] interrupt ?(q/t/c/d/u/w/?) u Abort this computation? (y or n) y Calling the registered exception handler...done. return to toplevel
ox_rpc
, ox_cmo_rpc
, ox_execute_string
Go to the first, previous, next, last section, table of contents.