auth/factotum: fix password prompt hang

Fixes #51.

R=rsc
http://codereview.appspot.com/3431044
This commit is contained in:
Russ Cox 2010-12-07 13:17:27 -05:00
parent 00f0146a5c
commit d10a7ed9a8

View file

@ -26,8 +26,6 @@ threadmain(int argc, char *argv[])
char *mtpt;
char err[ERRMAX];
rfork(RFNOTEG);
/* mtpt = "/mnt"; */
mtpt = nil;
owner = getuser();
@ -72,6 +70,8 @@ threadmain(int argc, char *argv[])
if(argc != 0)
usage();
rfork(RFNOTEG);
if(trysecstore && havesecstore()){
while(secstorefetch() < 0){
rerrstr(err, sizeof err);