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:
parent
3e7dbdcdba
commit
a7c614b3dd
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue