summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/lpc
diff options
context:
space:
mode:
authormph <mph@FreeBSD.org>2000-06-30 20:05:21 +0000
committermph <mph@FreeBSD.org>2000-06-30 20:05:21 +0000
commit13b4933d9e622b14283bd869e4ced912cd17a5a5 (patch)
treefda982fb8416f36fd3e98c5a4d236c72f280e5be /usr.sbin/lpr/lpc
parentc9e8a236bca71a48d044038bf776d858bbb28e78 (diff)
downloadFreeBSD-src-13b4933d9e622b14283bd869e4ced912cd17a5a5.zip
FreeBSD-src-13b4933d9e622b14283bd869e4ced912cd17a5a5.tar.gz
Quit on EOF from terminal instead of redisplaying the prompt.
Diffstat (limited to 'usr.sbin/lpr/lpc')
-rw-r--r--usr.sbin/lpr/lpc/lpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpc/lpc.c b/usr.sbin/lpr/lpc/lpc.c
index 559be75..5bfa859 100644
--- a/usr.sbin/lpr/lpc/lpc.c
+++ b/usr.sbin/lpr/lpc/lpc.c
@@ -169,7 +169,7 @@ cmdscanner()
el_source(el, NULL);
}
if ((bp = el_gets(el, &num)) == NULL || num == 0)
- return;
+ quit(0, NULL);
len = (num > MAX_CMDLINE) ? MAX_CMDLINE : num;
memcpy(cmdline, bp, len);
OpenPOWER on IntegriCloud