bug-bash
[Top][All Lists]
Advanced

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

[PATCH] trap -p does not display ignored signals inherited from parent


From: Siddhesh Poyarekar
Subject: [PATCH] trap -p does not display ignored signals inherited from parent by a bash process
Date: Tue, 23 Mar 2010 12:59:23 +0530

Hi,

I already reported this in Fedora rawhide
(https://bugzilla.redhat.com/show_bug.cgi?id=572305) This also seems
to be present upstream, so I hope you guys find this useful.

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.


-- 
Siddhesh Poyarekar
http://siddhesh.in

Attachment: bash-fix-trap-list.patch
Description: Text Data


reply via email to

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