rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* Re: signals and suchlike
@ 1992-02-16  1:50 Tom Culliton x2278
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Culliton x2278 @ 1992-02-16  1:50 UTC (permalink / raw)
  To: cks, rc

There are a couple of problems with signal handling that Byron is
working on at the moment and will undoubtedly fix before 1.3 gets out
of beta.  I found that SIGINT seemed to be ignored but would work if
sent several time in quick succesion (by tap-tap-tapping ^C or whatever
you have it set to.)

Tom


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

* Re: signals and suchlike
@ 1992-02-15  5:00 Chris Siebenmann
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Siebenmann @ 1992-02-15  5:00 UTC (permalink / raw)
  To: rc

 A bug in signal handling: rc unconditionally ignores a SIG_IGN'd
SIGINT, even if it's running a shell. It should not; if SIGINT is
ignored on entry to a shell script, rc should not change this. Only
when it's interactive is it entitled to play around with signals in
that way.

	- cks


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

* Re: signals and suchlike
  1992-02-15  4:08 schwartz
@ 1992-02-15  4:39 ` Chris Siebenmann
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Siebenmann @ 1992-02-15  4:39 UTC (permalink / raw)
  To: rc

 The manual page is correct; ignored signals and default signals are
passed to children as-is, while signals that are caught to a function
are reset to default in children. This is slightly opaque in the manual,
but not very much (at least the signal section; perhaps there's wording
elsewhere).

	- cks


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

* signals and suchlike
@ 1992-02-15  4:08 schwartz
  1992-02-15  4:39 ` Chris Siebenmann
  0 siblings, 1 reply; 4+ messages in thread
From: schwartz @ 1992-02-15  4:08 UTC (permalink / raw)
  To: rc


Using rc-1.3b, some questions about signals...

; whatis sigint		# implicitly ignored, right?
sigint not found	# so why not say so?
; fn sigint {}		# set to ignored
; whatis sigint		# not the same?
fn sigint {}		# hmm

The man page says that signals are reset to their default
values in subshells.  CHANGES says that ignored signals
stay ignored.   It seems like the man page is correct, though:

; cat x
#!/bin/rc
whatis sigint
sleep 100000

; hup x		# hup runs x in the process group of the tty, so it
		# receives signals, but also sets sigint to sig_ign.
sigint not found
; ^C		# this kills x.

An analogous /bin/sh script behaves as expected.



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

end of thread, other threads:[~1992-02-16  2:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-02-16  1:50 signals and suchlike Tom Culliton x2278
  -- strict thread matches above, loose matches on Subject: below --
1992-02-15  5:00 Chris Siebenmann
1992-02-15  4:08 schwartz
1992-02-15  4:39 ` Chris Siebenmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).