mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
auth/factotum: fix password prompt hang
Fixes #51. R=rsc http://codereview.appspot.com/3431044
This commit is contained in:
parent
00f0146a5c
commit
d10a7ed9a8
1 changed files with 2 additions and 2 deletions
|
@ -26,8 +26,6 @@ threadmain(int argc, char *argv[])
|
||||||
char *mtpt;
|
char *mtpt;
|
||||||
char err[ERRMAX];
|
char err[ERRMAX];
|
||||||
|
|
||||||
rfork(RFNOTEG);
|
|
||||||
|
|
||||||
/* mtpt = "/mnt"; */
|
/* mtpt = "/mnt"; */
|
||||||
mtpt = nil;
|
mtpt = nil;
|
||||||
owner = getuser();
|
owner = getuser();
|
||||||
|
@ -72,6 +70,8 @@ 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);
|
||||||
|
|
Loading…
Reference in a new issue