[maemo-developers] Shepherd on Maemo 5 ?

From: Attila Csipa maemo at csipa.in.rs
Date: Fri Sep 11 02:37:36 EEST 2009
On Friday 11 September 2009 00:59:57 Sarah Newman wrote:
> I hacked together a perl script with a similar goal but it used SIGSTOP
> when the battery got too low instead of killing the process.  I didn't

Yes, I wasn't specific enough, I do SIGTERM and SIGKILL in 10 sec increments to 
make the app actually quit (first I ask nicely, but if it won't listen... 
there's always a stronger signal). I didn't use SIGSTOP as I suspected it 
could cause problems on resuming (if the user starts another instance from the 
menu, with the controlled one still stopped/suspended, etc). But, I'm by no 
means a POSIX guru, so all comments/suggestions that can make this work 
nicer/better in more scenarios are more than welcome :)

More information about the maemo-developers mailing list