summaryrefslogtreecommitdiff
path: root/dselect/method.cc
diff options
context:
space:
mode:
authorWichert Akkerman <wakkerma@debian.org>2001-06-08 22:48:16 +0000
committerWichert Akkerman <wakkerma@debian.org>2001-06-08 22:48:16 +0000
commit4cf22cc69c0c35db1341ef2a156c9c4246bb7f53 (patch)
treece45d9fcd1d03d4638e0312498477a68c4f1437a /dselect/method.cc
parentff00f1369777ba3360984f7439768b77ee40657d (diff)
downloaddpkg-4cf22cc69c0c35db1341ef2a156c9c4246bb7f53.tar.gz
handle interrupted getc in falliblesubprocess() prompt
Diffstat (limited to 'dselect/method.cc')
-rw-r--r--dselect/method.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dselect/method.cc b/dselect/method.cc
index 3d1936606..032b3824f 100644
--- a/dselect/method.cc
+++ b/dselect/method.cc
@@ -197,8 +197,8 @@ urqresult falliblesubprocess(const char *exepath, const char *name,
fprintf(stderr,_("Press <enter> to continue.\n"));
if (ferror(stderr))
ohshite(_("write error on standard error"));
- do { c= fgetc(stdin); } while (c != EOF && c != '\n');
- if (c == EOF)
+ do { c= fgetc(stdin); } while ((c == ERR && errno==EINTR) || (c != '\n'));
+ if (c == ERR)
ohshite(_("error reading acknowledgement of program failure message"));
return urqr_fail;
}