Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Traping signals - Which ones?
@ 1997-04-01  5:00 Warren Castle
  1997-04-02  5:00 ` Brian C Hill
  0 siblings, 1 reply; 2+ messages in thread
From: Warren Castle @ 1997-04-01  5:00 UTC (permalink / raw)



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 
Assiniboine Community College, Brandon, Manitoba, Canada 
Work: castle@adminnet.assiniboinec.mb.ca
Home: castlew@docker.com
Phone: (204)726-6631    Fax: (204)726-7014
********************************************************




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Traping signals - Which ones?
  1997-04-01  5:00 Traping signals - Which ones? Warren Castle
@ 1997-04-02  5:00 ` Brian C Hill
  0 siblings, 0 replies; 2+ messages in thread
From: Brian C Hill @ 1997-04-02  5:00 UTC (permalink / raw)



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                   |



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-04-02  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-01  5:00 Traping signals - Which ones? Warren Castle
1997-04-02  5:00 ` Brian C Hill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox