# Block destructors

**URL:** <https://www.ruby-forum.com/t/block-destructors/158768>\
**Category:** GNU Radio\
**Created:** [January 27, 2009, 8:22pm UTC](https://www.ruby-forum.com/t/block-destructors/158768 "2009-01-27T20:22:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brett\_LSTrotter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/df788c/32.png) [@Brett\_LSTrotter](https://www.ruby-forum.com/u/Brett_LSTrotter)\
**Post date:** [January 27, 2009, 8:22pm UTC](https://www.ruby-forum.com/t/block-destructors/158768/1 "2009-01-27T20:22:05Z")

</div>

I’m doing some logging of what time signal events happen and in the  
destructor of a custom signal block, I’m printing a log line to a file,  
followed by an fflush, but i’m not always getting my line. Is the  
destructor not happening, or is something else transpiring?

Is there a way to ensure a destructor will fire even if a user ctrl+c’s  
a flowgraph, especially with WXGUI/GRC, or is that not what is  
happening?
