Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2009 01:49:16 -0700
From:      perryh@pluto.rain.com
To:        martin@dc.cis.okstate.edu
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Control-Z the Sleep Signal
Message-ID:  <4a2f738c.vK%2B04C2hzxx8edYV%perryh@pluto.rain.com>
In-Reply-To: <200906100204.n5A24J97018545@dc.cis.okstate.edu>
References:  <200906100204.n5A24J97018545@dc.cis.okstate.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Martin McCormick <martin@dc.cis.okstate.edu> wrote:
> 	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.

To each his own, I guess.  To anyone familiar with the usual
Unix/Linux conventions, this response to ^Z is going to be
thoroughly unexpected.  Is there any reasonable way to do
only the minimum cleanup need for the lock to be safely
removed, and then suspend, reacquiring the lock when resumed?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4a2f738c.vK%2B04C2hzxx8edYV%perryh>