From: "ara.t.howard" Date: 2008-06-04T00:18:37+09:00 Subject: Re: Traping signals on child processes On Jun 3, 2008, at 4:07 AM, Mário Lopes wrote: > Which could be the best approach to this issue? Let ffmpeg run in the > background and trap the INT signals in the foreground? i believe this is the case - you cannot inject your own signal handlers into ffmpeg (easily) so this seems like the easiest solution. still i wonder - ffmpeg dies on INT for a reason - it's worth considering: if a user is running from the console then they expect to be able to kill a process, if they are not then your problem vanishes. by trapping INT you will be forcing users to use something stronger, like -9, which may not do things like clean up temp files, etc. food for thought. regards. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama