"^C" problem when multithreads stop at "sudo -v"
authorYigang Wen <yigangx.wen@intel.com>
Tue, 16 Oct 2012 08:41:42 +0000 (16:41 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Tue, 16 Oct 2012 22:48:31 +0000 (06:48 +0800)
commit9b280014e93a8a1ad7db76c67cc16bc8e3846ffb
treeda46576445c96bcfde5e8a77a16ab61f37ff0800
parentfe1f29cf863037bae9bac11b0c9534511c59bf03
"^C" problem when multithreads stop at "sudo -v"

when multithreads stop at "sudo -v", you need input ^C more than
one time to terminate depanneur. The reason is main thread blocked
by "lock($DETACHING)" and it can't response to ^C immediately. So
use another lock variable "$SUDOV_LOCK" for "sudo -v".
depanneur