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 :)

_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to