Posted by anarcat on September 29, 2009 at 12:21am
3 followers
Jump to:
| Project: | Drush |
| Version: | All-versions-5.x-dev |
| Component: | PM (dl, en, up ...) |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Right now, when a task is interrupted or killed (control-c or SIGINT), it just dies there, which is bad, because we have this nice rollback system exactly for those kinds of situation, and it doesn't get used.
We will need to catch errors and launch the rollback hooks as appropriate.
Comments
#1
#2
That would be a very nice to have, for Aegir and Drush 3.0. In fact, I think that rollbacks should be called on SIGHUP too, and maybe other signals...
#3
Seems like pcntl is required to handle signals in PHP: http://ca2.php.net/manual/fr/function.pcntl-signal.php
Note that pcntl is not available on windows.
#4
Related #1589108: Drush doesn't clean up temporary files if interrupted