mattes/migrate — pull request #25 by daddykotex (2014-12-28 20:47:27+00:00)
Title: Ensure that interrupt signals are not relayed to the interrupt channel when the migration is over

Hi,

Like I said [here](https://github.com/mattes/migrate/issues/1#issuecomment-58728186), I had a problem interrupting my program when a migration successfully ran. I think the problem was that the interrupt signals were still being relayed to the interrupt channel created in the Up method of migrate.go.

That channel is passed to the WaitAndRedirect function of the Pipe. I added a simple function that is called after the function return to ensure the signals stop being relayed when the migration is over, successful or not.

What do you think?
P.S. : I ran the test against a MySQL database where and everything was still fine.

Thanks, David