| Date: Tue, 7 Dec 2010 13:17:27 -0500
auth/factotum: fix password prompt hang
Fixes #51.
R=rsc
http://codereview.appspot.com/3431044
Diffstat:
M src/cmd/auth/factotum/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- |
| t@@ -26,8 +26,6 @@ threadmain(int argc, char *argv[])
char *mtpt;
char err[ERRMAX];
- rfork(RFNOTEG);
-
/* mtpt = "/mnt"; */
mtpt = nil;
owner = getuser();
t@@ -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); |