From owner-freebsd-questions@FreeBSD.ORG Tue Jun 9 21:30:42 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 978A810656CA for ; Tue, 9 Jun 2009 21:30:42 +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 4E68A8FC14 for ; Tue, 9 Jun 2009 21:30:41 +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 n59LUU7E000141 for ; Tue, 9 Jun 2009 16:30:30 -0500 (CDT) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <200906092130.n59LUU7E000141@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <139.1244583030.1@dc.cis.okstate.edu> Date: Tue, 09 Jun 2009 16:30:30 -0500 From: Martin McCormick Subject: 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 21:30:44 -0000 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. I have an application with a signal handler I wrote and I am trying to discourage folks typing CTRL-Z if it hangs because that does make it seem to go away but it is really still hanging around and any lock files it created are not removed. The effect is about as bad as if it crashed and left lock files. Normally, CTRL-c makes it remove the locks before exiting. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Telecommunications Services Group