Control-Z the Sleep Signal

perryh at perryh at
Wed Jun 10 09:01:05 UTC 2009

Martin McCormick <martin at> 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?

More information about the freebsd-questions mailing list