Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Jun 2009 21:04:19 -0500
From:      Martin McCormick <martin@dc.cis.okstate.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: Control-Z the Sleep Signal 
Message-ID:  <200906100204.n5A24J97018545@dc.cis.okstate.edu>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906100204.n5A24J97018545>