Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jun 2009 17:07:30 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        Martin McCormick <martin@dc.cis.okstate.edu>, freebsd-questions@freebsd.org
Subject:   Re: Control-Z the Sleep Signal
Message-ID:  <20090609220730.GD56070@dan.emsphone.com>
In-Reply-To: <20090609234215.32201c06.freebsd@edvax.de>
References:  <200906092130.n59LUU7E000141@dc.cis.okstate.edu> <20090609234215.32201c06.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jun 09), Polytropon said:
> On Tue, 09 Jun 2009 16:30:30 -0500, Martin McCormick <martin@dc.cis.okstate.edu> wrote:
> > Which signal is sent to a process when one types ^z or Control-z?  It
> > appears to be SIGSTOP and according to signal's man page, this is one
> > signal you can't catch.

^Z sends a SIGTSTP, which can be caught (or ignored, in your case).

    18    SIGTSTP      stop process         stop signal generated from
                                            keyboard
> According to 
> 
> 	% stty -g
> 	... status=14:stop=13:susp=1a:time=0:werase=17: ...
 	                      ^^^^^^^
>      17    SIGSTOP      stop process         stop (cannot be caught or
>                                              ignored)
> 
> And I think that 17 (decimal) is refered to as 1a (hexadecimal)
> in the previous stty command.

1a hex just refers to the control code itself (^Z), and doesn't indicate
which signal is sent.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090609220730.GD56070>