MAXPWD
for (i = MAXPWD;; i *= 2) {
pwd = stalloc(MAXPWD);
while ((i = read(pip[0], p, pwd + MAXPWD - p)) > 0