bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SIGINT handling in bash 3


From: Shaw
Subject: SIGINT handling in bash 3
Date: Thu, 18 Nov 2004 21:16:17 -0500
User-agent: KMail/1.6.1

Hello,

Please excuse my intrusion if my question is not appropriate for this list.  I 
recently installed bash 3 on OSF1 and found rather quickly that I'm unable to 
CTRL-c out of any process with bash as my login shell.

stty reports that intr is 'bound' to ^C.  For example, if I `tail 
-f /var/log/messages`, CTRL-c does not stop tail from doing its thing, nor 
does a kill -s SIGINT <tail PID> cause the expected termination.  If I 
instead login using csh and then invoke bash with the --login flag, SIGINTs 
are not ignored. 

There's not a whole lot in the documentation about the effects of the --login 
flag, besides the sourcing of /etc/profile and I lost track of the 
set_login_shell function defined in builtin/command.h, where is that 
implemented?
        
I have only been able to find one report of similar behavior on this list, but 
a solution was never mentioned.  Can anyone shed some light on the 
differences between a login shell and a non-login shell that might help me 
figure out what might be happening to my SIGINTS?


Thanks,
Shaw
(bash lover) 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]