Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 504904

Summary: trap -p not displaying ignored signal when run from child bash
Product: Red Hat Enterprise Linux 5 Reporter: Mark Goodwin <mgoodwin>
Component: bashAssignee: Roman Rakus <rrakus>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: bnater, jnansi, mhusnain, rvokal, spoyarek, tsmetana
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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".
Story Points: ---
Clone Of:
: 768949 846356 (view as bug list) Environment:
Last Closed: 2011-07-21 10:38:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 768949, 846356    
Attachments:
Description Flags
fix trap list for ignored signals none

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