Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11859

Re: Bug in bash 4.4-beta: suspending and restarting "man" program

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Bug in bash 4.4-beta: suspending and restarting "man" program
Date 2015-11-10 10:33 -0500
Message-ID <mailman.2063.1447169635.7904.bug-bash@gnu.org> (permalink)
References (2 earlier) <CAAHpriPN+Vx8Eq6yKdegmAO2ZbeQ4G7_kqjDBs_Q-S_B8Xhk5g@mail.gmail.com> <CAAHpriOn7epEkL77y7y4JxtVqHh_0F9LD5cw9kiSwEittTVkuw@mail.gmail.com> <87611nwmi0.fsf@igel.home> <CAAHpriNDW-BByfYGyRCV4baiyYt_Z7J3oCYw23MqVn7wojyjSg@mail.gmail.com> <CAAHpriOMzGsWLRKyZYsZ0SdMNcidbkbFbwNhqsSGarESbfV2mA@mail.gmail.com>

Show all headers | View raw


On 11/9/15 5:55 PM, Keith Thompson wrote:
> I have some more information on this.  In the latest test,
> the problem occurs when I run bash under rxvt, but not when I run it under
> xterm.
> 
> Using strace, I've found a difference in a call to rt_sigaction().  It calls
> 
> rt_sigaction(SIGTSTP, {SIG_DFL, ...})
> 
> under xterm (which works correctly), but
> 
> rt_sigaction(SIGTSTP, {SIG_IGN, ...})
> 
> under rxvt (where it doesn't).

This can happen if SIGTSTP is ignored when the shell is invoked.  When
bash restores the original signal dispositions in child processes, it
restores SIG_IGN.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Bug in bash 4.4-beta: suspending and restarting "man" program Chet Ramey <chet.ramey@case.edu> - 2015-11-10 10:33 -0500

csiph-web