Re: [PATCH] [SHELL] execute EXIT trap if the shell is killed through a signal

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

 



Gerrit Pape <pape <at> smarden.org> writes:
> From: Chris Lamb <chris <at> chris-lamb.co.uk>
> 
> dash used to print the following output when running this test script
> 
>  $ dash -c 'trap "echo EXIT trap executed" EXIT; kill -HUP $$'
>  Hangup
>  $
> 
> With this commit, it properly executes the EXIT trap defined
> 
>  $ dash -c 'trap "echo EXIT trap executed" EXIT; kill -HUP $$'
>  EXIT trap executed
>  $
> 
> The missing trap handling was reported by Martin Dickopp through
>  http://bugs.debian.org/390433

Hi, sorry, the patch causes severe problems, and so should not be applied, see

 http://bugs.debian.org/515229
 http://bugs.debian.org/515064

Regards, Gerrit.


--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux