ara.t.howard wrote: > On Jun 2, 2008, at 3:20 PM, Mrio Lopes wrote: > >> This seems to work fine with sleep 10 it waits until the end of the >> execution without actually passing the INT signal! But I'm unable to >> make it work with an external application like ffmpeg that traps the >> SIGINT itself. Any idea on how could I override this behavior without >> having to actually recompile ffmpeg and disable myself the handle? > > i'm unsure what you mean - you mean when running from the console? if > so try running ffmpeg with a pty. Yes, when being invoked like ruby script.rb > i have to ask though - *why* do this? what problem are you solving by > trapping INT and handling it differently? > > there are good reasons - but i'm wondering ;-) Well, ffmpeg should be running and not interrupted until it ends its job. The exit should be graceful and not end abruptly, otherwise the conversion will be interrupted. Which could be the best approach to this issue? Let ffmpeg run in the background and trap the INT signals in the foreground? Mário -- Posted via http://www.ruby-forum.com/.