Bug 504904 - trap -p not displaying ignored signal when run from child bash
Summary: trap -p not displaying ignored signal when run from child bash
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: bash
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Roman Rakus
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks: 768949 846356
TreeView+ depends on / blocked
 
Reported: 2009-06-10 01:53 UTC by Mark Goodwin
Modified: 2018-11-14 17:13 UTC (History)
6 users (show)

Fixed In Version: bash-3.2-25.el5
Doc Type: Bug Fix
Doc Text:
The manual page for trap in Bash did not mention that signals ignored upon entry cannot be listed later. This is now fixed and the manual page entry text is amended to "Signals ignored upon entry to the shell cannot be trapped, reset or listed".
Clone Of:
: 768949 846356 (view as bug list)
Environment:
Last Closed: 2011-07-21 10:38:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
fix trap list for ignored signals (1.82 KB, patch)
2009-06-10 01:53 UTC, Mark Goodwin
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1073 0 normal SHIPPED_LIVE Low: bash security, bug fix, and enhancement update 2011-07-21 10:37:04 UTC

Description Mark Goodwin 2009-06-10 01:53:32 UTC
Created attachment 347126 [details]
fix trap list for ignored signals

Description of problem:
trap -p doesn't show ignored signals inherited across exec

Version-Release number of selected component (if applicable):
bash-3.2-24.el5


How reproducible: always

Steps to Reproduce:
1) trap '' SIGINT
2) exec bash
3) trap -p
  
Actual results:
nothing displayed

Expected results:
list of ignored signals

Additional info:
patch from spoyarek attached

Comment 2 RHEL Program Management 2009-11-06 18:58:51 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 3 Siddhesh Poyarekar 2010-03-23 16:28:13 UTC
It's not a bug, it's a feature:

http://lists.gnu.org/archive/html/bug-bash/2010-03/msg00084.html

Comment 4 Roman Rakus 2010-03-23 18:00:22 UTC
Yep. Thank you.

Comment 8 RHEL Program Management 2010-08-09 18:15:40 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 10 RHEL Program Management 2011-01-11 20:08:38 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 11 RHEL Program Management 2011-01-11 22:19:10 UTC
This request was erroneously denied for the current release of
Red Hat Enterprise Linux.  The error has been fixed and this
request has been re-proposed for the current release.

Comment 12 Roman Rakus 2011-02-10 15:00:38 UTC
Fixed in bash-3.2-25.el5

Comment 14 Branislav Náter 2011-04-14 06:16:07 UTC
Bugfix was successfully verified on package bash-3.2-29.el5 on all architectures (i386, x86_64, ia64, ppc, s390x).

Manual page was updated and contain desired information.

Comment 15 Misha H. Ali 2011-04-20 09:12:13 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The manual page for trap in Bash did not mention that signals ignored upon entry cannot be listed. This is now fixed to "Signals ignored upon entry to the shell cannot be trapped, reset or listed".

Comment 16 Misha H. Ali 2011-04-21 00:27:28 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-The manual page for trap in Bash did not mention that signals ignored upon entry cannot be listed. This is now fixed to "Signals ignored upon entry to the shell cannot be trapped, reset or listed".+The manual page for trap in Bash did not mention that signals ignored upon entry cannot be listed later. This is now fixed and the manual page entry text is amended to "Signals ignored upon entry to the shell cannot be trapped, reset or listed".

Comment 17 errata-xmlrpc 2011-07-21 10:38:33 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-1073.html


Note You need to log in before you can comment on or make changes to this bug.