View Single Post
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#614
Originally Posted by maacruz View Post
It's a little script daemon that monitors gpsdriver and kills it when has leaked enough memory to grow in size, which happens every 1.5-2 hours, but it won't interfere with gps usage.
Cool :-) Are you going to push this to extras-devel?

A minor nitpick: I think you meant to use $MMAX & $PID in the main line, ie

Code:
KILL=$(busybox awk -v MMAX="$MMAX" '($1 == "VmSize:") {if ($2>MMAX) print 1 }' \
/proc/$PID/status) 2>/dev/null
While we're at it, I wonder if there's some way to detect when /var/lib/gps/nvd_data has become stale and get rid of it as well...
 

The Following 2 Users Say Thank You to lma For This Useful Post: