gsmd: This appears to be a race-free oom adjustment

Use the "() &" syntax to adjust the score before executing the new
command. This is removing the reace from the previous commit. Update
the PR to force rebuilding new packages.
This commit is contained in:
Holger Hans Peter Freyther 2013-03-15 23:27:55 +01:00
parent 3e7dbdcdba
commit a7c614b3dd
2 changed files with 2 additions and 3 deletions

View File

@ -11,9 +11,8 @@ trap "{ rm -f $PIDFILE ; kill 0; }" EXIT
while true;
do
echo "Restarting not dealing well with spaces.."
exec $* &
(echo "0" > /proc/self/oom_score_adj && exec $*) &
LAST_PID=$!
echo "0" > /proc/$LAST_PID/oom_score_adj
wait $LAST_PID
sleep 10s
done

View File

@ -16,7 +16,7 @@ SRC_URI = "git://git.gnumonks.org/openmoko-gsmd.git;branch=master \
SRCREV = "da770f8f34662a298647a75698a718705047d3dc"
S = "${WORKDIR}/git"
PR = "r12.0"
PR = "r13.0"
inherit autotools pkgconfig update-rc.d