Download & Extend

interruptions should launch rollbacks

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

Priority:critical» normal

#2

Category:bug report» feature request

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

Component:Interoperability» PM (dl, en, up ...)

Related #1589108: Drush doesn't clean up temporary files if interrupted

nobody click here