summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-08-18 18:20:49 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-08-18 18:20:49 +0000
commita973c7a4bc3309605844b2ad2d945c28f30cca47 (patch)
tree0d4453d77d2382871ced359b5edad26d2ecff8d9 /usr.sbin/lpr
parent28122e492684597b8ede7acff6649e9e5b1b7aeb (diff)
Wait for an output filter to conmplete before starting the next print job;
from FreeBSD PR 739
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/lpd/printjob.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c
index 04f035f7882..4bcd897f2fe 100644
--- a/usr.sbin/lpr/lpd/printjob.c
+++ b/usr.sbin/lpr/lpd/printjob.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printjob.c,v 1.5 1996/07/27 10:31:17 deraadt Exp $ */
+/* $OpenBSD: printjob.c,v 1.6 1996/08/18 18:20:48 tholo Exp $ */
/* $NetBSD: printjob.c,v 1.9.4.3 1996/07/12 22:31:39 jtc Exp $ */
/*
@@ -291,6 +291,8 @@ again:
if (TR != NULL) /* output trailer */
(void) write(ofd, TR, strlen(TR));
}
+ (void) close(ofd);
+ (void) wait(NULL);
(void) unlink(tempfile);
exit(0);
}