Fix bug in recycling jobs
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 28 Mar 2017 08:18:06 +0000 (10:18 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 28 Mar 2017 08:21:06 +0000 (10:21 +0200)
commit48827b7b9862ab5961f938f38a8667e15421a50c
treeb3f2100155ae7adc2125ab93f162a8566f39d8af
parentf9fc4077cc0eb167f3e65f54cc27717c79beee92
Fix bug in recycling jobs

The bug was creating an infinite loop starving
the system (or other possible horrific stuff).

Also updated the test.

Change-Id: Id71dd112d2ed4651ac8aa56d2c57b088d69b8655
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/jobs.c
src/jobs.h
src/tests/test-thread.c
src/tests/test-thread.sh