From owner-freebsd-questions@FreeBSD.ORG Tue Jun 9 22:07:31 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D63A91065670 for ; Tue, 9 Jun 2009 22:07:31 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id 8CB0E8FC13 for ; Tue, 9 Jun 2009 22:07:31 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id n59M7UPH045217 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 9 Jun 2009 17:07:30 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id n59M7UGV079250 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 9 Jun 2009 17:07:30 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id n59M7UFL079249; Tue, 9 Jun 2009 17:07:30 -0500 (CDT) (envelope-from dan) Date: Tue, 9 Jun 2009 17:07:30 -0500 From: Dan Nelson To: Polytropon Message-ID: <20090609220730.GD56070@dan.emsphone.com> References: <200906092130.n59LUU7E000141@dc.cis.okstate.edu> <20090609234215.32201c06.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090609234215.32201c06.freebsd@edvax.de> X-OS: FreeBSD 7.2-STABLE User-Agent: Mutt/1.5.19 (2009-01-05) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Tue, 09 Jun 2009 17:07:30 -0500 (CDT) X-Scanned-By: MIMEDefang 2.45 Cc: Martin McCormick , freebsd-questions@freebsd.org Subject: Re: Control-Z the Sleep Signal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 22:07:32 -0000 In the last episode (Jun 09), Polytropon said: > On Tue, 09 Jun 2009 16:30:30 -0500, Martin McCormick 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