dd: fix a signal handling race
commite4caea57759495847dc52f7a7d062500dd711a96
authorPádraig Brady <P@draigBrady.com>
Thu, 13 Aug 2009 13:37:43 +0000 (13 14:37 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 13 Aug 2009 15:06:50 +0000 (13 16:06 +0100)
tree179db10a2fd92ba9954dd5c41391c5f2ce038956
parentab274c428dbdb36b87c37b0045e8e6dc3585f04a
dd: fix a signal handling race

* src/dd.c (main): Install the signal handlers at startup
rather than just before the copy starts. In this way signals
received before the copy (like during a slow truncate for e.g.)
will be deferred and handled consistently.
* THANKS: Add Bernhard's email address.
* NEWS: Mention the fix.
Reported by Bernhard Voelker.
NEWS
THANKS
src/dd.c