auth/factotum: fix password prompt hang with secstore

R=rsc
http://codereview.appspot.com/6906057
This commit is contained in:
David du Colombier 2012-12-09 11:24:30 +01:00
parent 09adcb0901
commit 0b4fd92105

View file

@ -70,8 +70,6 @@ threadmain(int argc, char *argv[])
if(argc != 0)
usage();
rfork(RFNOTEG);
if(trysecstore && havesecstore()){
while(secstorefetch() < 0){
rerrstr(err, sizeof err);
@ -81,7 +79,9 @@ threadmain(int argc, char *argv[])
fprint(2, "Enter an empty password to quit.\n");
}
}
rfork(RFNOTEG);
fsinit0();
threadpostmountsrv(&fs, service, mtpt, MBEFORE);
threadexits(nil);