… | |
… | |
208 | wishes to exit within C<60> seconds, after which it will be forcefully |
208 | wishes to exit within C<60> seconds, after which it will be forcefully |
209 | killed. |
209 | killed. |
210 | |
210 | |
211 | All of this should ensure that C<on_exit> hooks are only executed when the |
211 | All of this should ensure that C<on_exit> hooks are only executed when the |
212 | program is in a sane state and data structures are still intact. This only |
212 | program is in a sane state and data structures are still intact. This only |
213 | works when the program does not install it's own TERM (etc.) watchers, of |
213 | works when the program does not install its own TERM (etc.) watchers, of |
214 | course, as there is no control over them. |
214 | course, as there is no control over them. |
215 | |
215 | |
216 | There is currently no way to unregister C<on_exit> hooks. |
216 | There is currently no way to unregister C<on_exit> hooks. |
217 | |
217 | |
218 | =cut |
218 | =cut |