^Z can't suspend less in the tty mode

Kazuhiro Fujieda fujieda@jaist.ac.jp
Tue May 9 05:14:00 GMT 2000

>>> On Tue, 9 May 2000 10:41:59 +0100 
>>> "Fifer, Eric" <EFifer@sanwaint.com> said:

> What is happening is that when SIGTSTP is caught the signal
> handler does a longjmp().  And, when the thread restarts at the
> setjmp() the signal mask is not restored.

I can understand what is the problem. less wants setjmp() and
longjmp() to do more than what they can do in Cygwin.

> This is a patch against
> less-354 (from http://home.flash.net/~marknu/less/ ) which fixes
> the problem:

Your patch is also applicable to many older versions.
  | AIST      Kazuhiro Fujieda <fujieda@jaist.ac.jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

More information about the Cygwin-developers mailing list