Forum: Ruby Aborting a rake task which uses a subprocess

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (regularfry)
on 2007-01-17 12:40
(Received via mailing list)
Hi all,

I've got a rake file which I use to deploy a website.  This rakefile
involves running a bunch of backticked subprocesses (like ssh sessions,
lftp sessions and so on).  Often, I can spot that something has gone
wrong in one of these subprocesses from the output, or realise I've
forgotten something crucial, and want to abort manually.

Hitting Ctrl-C only affects the subprocess that's running at the time,
and makes rake just skip on to the next one.  Is there any generic way
of allowing Rake to also catch the signal and abort?
This topic is locked and can not be replied to.