Disabling Quit On Telnet

Bill Campbell bill at celestial.com
Fri Apr 28 16:02:37 PDT 2006


On Fri, Apr 28, 2006, Scott Walker wrote:
>Was wondering how you guys handle this situation:
>
>Once a posting procedure has started I disable the break key with a
>"break off" in processing.  That works fine if the user tries to press
><Del> in SCO Unix or <Ctrl><C> in Linux.
>
>But what if he takes his mouse and clicks on the "X" in the upper right
>hand corner of the Anziolite screen?  Boom he's out, the posting aborts,
>and I've got a mess...

On *nix boxes, you can put an appropriate ``trap'' statement in the wrapper
that start's FilePro.  This should do the trick someplace in the script
before it fires off the real FilePro binary.

trap '' 1 2 3 15

I first ran into this with RMCOBOL on Tandy Model 16s where breaking out of
the program leaving the ISAM files in a mess.

That might not take care of the total nuking of a session when Windows
crashes.  I doubt that wrapping in ``nohup'' would help there.  In a
database with transaction rollback, one could probably handle this by
catching the signal, and rolling back all transactions before exiting.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

The Constitution is a written instrument.  As such, its meaning
does not alter.  That which it meant when it was adopted, it
means now.
-- SOUTH CAROLINA v. US, 199 U.S. 437, 448 (1905)


More information about the Filepro-list mailing list