auth/factotum: fix password prompt hang with secstore
R=rsc http://codereview.appspot.com/6906057
This commit is contained in:
parent
09adcb0901
commit
0b4fd92105
1 changed files with 3 additions and 3 deletions
|
|
@ -70,8 +70,6 @@ threadmain(int argc, char *argv[])
|
||||||
if(argc != 0)
|
if(argc != 0)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
rfork(RFNOTEG);
|
|
||||||
|
|
||||||
if(trysecstore && havesecstore()){
|
if(trysecstore && havesecstore()){
|
||||||
while(secstorefetch() < 0){
|
while(secstorefetch() < 0){
|
||||||
rerrstr(err, sizeof err);
|
rerrstr(err, sizeof err);
|
||||||
|
|
@ -82,6 +80,8 @@ threadmain(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rfork(RFNOTEG);
|
||||||
|
|
||||||
fsinit0();
|
fsinit0();
|
||||||
threadpostmountsrv(&fs, service, mtpt, MBEFORE);
|
threadpostmountsrv(&fs, service, mtpt, MBEFORE);
|
||||||
threadexits(nil);
|
threadexits(nil);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue