Bug 572305 - [PATCH] trap -p does not display ignored signals inherited from parent by a bash process
Summary: [PATCH] trap -p does not display ignored signals inherited from parent by a b...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Roman Rakus
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-10 19:41 UTC by Siddhesh Poyarekar
Modified: 2015-09-14 00:21 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-03-23 16:30:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Show inherited signals in trap -p output (1.63 KB, patch)
2010-03-10 19:41 UTC, Siddhesh Poyarekar
no flags Details | Diff

Description Siddhesh Poyarekar 2010-03-10 19:41:57 UTC
Created attachment 399166 [details]
Show inherited signals in trap -p output

Description of problem:
trap -p doesn't show ignored signals inherited from its parent across an execve

Version-Release number of selected component (if applicable):
bash-4.1.2-3.fc14

How reproducible:
Always

Steps to Reproduce:
1. trap '' SIGINT
2. exec bash
3. trap -p
  
Actual results:
Nothing is returned as output of trap -p. But at the same time, running cat and trying to interrupt it shows that the signal is in fact being ignored

Expected results:
The list of ignored signals should be returned

Additional info:
Attached patch ensures that inherited ignored signals are reflected in trap_list and then subsequently displayed when trap -p is invoked.

Comment 1 Siddhesh Poyarekar 2010-03-23 16:30:04 UTC
It's not a bug, it's a feature:

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

So this is how it feels to close my own bug report as NOTABUG ;)


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