From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,66525c052f5b54aa X-Google-Attributes: gidfee84,public From: bchill@gis.ucdavis.edu (Brian C Hill) Subject: Re: Traping signals - Which ones? Date: 1997/04/02 Message-ID: <5ht0lu$id7$1@mark.ucdavis.edu>#1/1 X-Deja-AN: 230068748 References: <5hrggf$1u5@goofy.BrandonU.CA> Organization: University of California, Davis Newsgroups: comp.unix.osf.osf1 Warren Castle (castle@adminnet.assiniboinec.mb.ca) wrote: : I have a Kron shell menu script that I don't what the end users to get out of. : Which signals should I trap? I tried trapping all of them and while this did : prevent them from breaking out of the script, it also left orphan processes on : the system. If a user closed thier telnet app without logging out first, thier : process remained on the system. : : Thanks. : Warren Castle, Network Manager The signals that you can generate from the keyboard are the ones you usually need to worry about - SIGINT (signal 2 generated by ctrl-C) SIGQUIT (signal 3 generated by ctrl-\). In some cases you might want to trap adds SIGHUP (signal 1) and sometimes SIGTERM (signal 15). In short, at least trap "" 2 3 but probably not more than trap "" 1 2 3 15 ____________________________________________________________________ / Brian C. Hill bchill@ucdavis.edu (916) 753-0358 \ | Systems Programmer University of California, Davis | | Graduate School of Management & GIS Research Lab |