Fix hang when entering wrong sudo pw
Fix hang when entering wrong sudo pw

Task-number: QTIFW-451
Task-number: QTIFW-409
Change-Id: I83ebd338b5f52f2a0b3b1fabcce8fb98afce5e19
Reviewed-by: Karsten Heimrich <81d67632fe4bf9afb88a400b41aa25e19a1d2a12@digia.com>

olear/qtifw,olear/qtifw,olear/qtifw,olear/qtifw