Fixed the forever bug with race condition

Signed-off-by: Keith Wiles <keith.wiles@windriver.com>