From: bchill@gis.ucdavis.edu (Brian C Hill)
Subject: Re: Traping signals - Which ones?
Date: 1997/04/02 [thread overview]
Message-ID: <5ht0lu$id7$1@mark.ucdavis.edu> (raw)
In-Reply-To: 5hrggf$1u5@goofy.BrandonU.CA
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 |
prev parent reply other threads:[~1997-04-02 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-01 5:00 Traping signals - Which ones? Warren Castle
1997-04-02 5:00 ` Brian C Hill [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox