bug-bash
[Top][All Lists]
Advanced

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

bash signal trap bug


From: Paweł Gołaszewski
Subject: bash signal trap bug
Date: Wed, 8 Jan 2014 18:01:09 +0100 (CET)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

Hello,

I think I've found bug in signal handling in bash.

Look at 2 scripts:
http://www.blues.gda.pl/SOURCES/show_logs.sh
http://www.blues.gda.pl/SOURCES/show_logs.zsh

Both are identical. "zsh" version works fine, "bash" version doesn't.
After start everything is fine, a can send _one_ HUP signal and it works 
as expected. The next HUP simply doesn't work. Even more: INT signal 
(Ctrl+C) works... like SIGHUP.

$ bash --version
GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ zsh --version
zsh 4.3.17 (x86_64-unknown-linux-gnu)


System: linux debian 7.2


It's a little tricky, please let me know if something I should explain.


-- 
pozdr.  Paweł Gołaszewski          jid:blues<at>jabber<dot>gda<dot>pl
--------------------------------------------------------------------------
If you think of MS-DOS as mono, and Windows as stereo, then Linux is Dolby
Pro-Logic Surround Sound with Bass Boost and all the music is free.

reply via email to

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