auth/factotum: fix password prompt hang with secstore
R=rsc http://codereview.appspot.com/6906057
This commit is contained in:
parent
09adcb0901
commit
0b4fd92105
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user