Specifying an action when user clicks OK (KillFormOkCB)
The KillFormOkCB callback takes three parameters:
-
the process id (pid)
-
the main form (mainForm)
-
the keyed list (cbs, as required at the end of a callback's
parameter list)
To kill the process,
exec(1tcl)
runs the
kill -9 command on the process ID contained in pid.
In real practice, a catch would typically be placed
around this command.
Next,
VxGetVar(1vtcl)
gets the handle of the list widget, and calls the
DoRefresh procedure to update the list.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004