From owner-freebsd-questions@FreeBSD.ORG Wed Jun 10 02:05:10 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 D361E106566C for ; Wed, 10 Jun 2009 02:05:10 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (dc.cis.okstate.edu [139.78.103.93]) by mx1.freebsd.org (Postfix) with ESMTP id A3DB38FC2E for ; Wed, 10 Jun 2009 02:05:10 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.14.2/8.13.8) with ESMTP id n5A24J97018545 for ; Tue, 9 Jun 2009 21:04:55 -0500 (CDT) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <200906100204.n5A24J97018545@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18543.1244599459.1@dc.cis.okstate.edu> Date: Tue, 09 Jun 2009 21:04:19 -0500 From: Martin McCormick 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: Wed, 10 Jun 2009 02:05:11 -0000 Dan Nelson writes: > ^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. Thanks to all. In this case, I made SIGTSTP have the same effect in the program that CTRL-C does (SIGINT) so now either signal makes the application remove the lock and quit gracefully. Again, many thanks to everybody. Martin McCormick