[cups.bugs] [MOD] STR #4015: lp/lpr: no job cleanup if failure occurs after cupsCreateJob()
Tim Waugh
twaugh at redhat.com
Thu Feb 2 07:28:02 PST 2012
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
When lp or lpr are printing from stdin, failures such as trying to submit
an empty file or catching a SIGINT signal result in an empty job in the
queue.
This is because they call cupsCreateJob() but do not call cupsCancelJob2()
on error.
$ lpstat -o | wc -l
0
$ lp
^C
$ lpstat -o | wc -l
1
$ lp < /dev/null
lp: No file in print request.
$ lpstat -o | wc -l
2
Link: http://www.cups.org/str.php?L4015
Version: 1.5.0
More information about the cups-devel
mailing list