[cups.bugs] [HIGH] STR #1559: fd handling issues in start_job...
jlovell.apple
jlovell at apple.com
Wed Apr 12 13:53:02 PDT 2006
[STR New]
There seems to be two fd handling issues in start_job:
- status fds need to be kept in cupsd_job_t since they are reused in
multi-document jobs (and 'statusfds[1]' should only be closed after
starting the last document).
- 'filterfds[slot]' should only be closed after starting the last document
since they are copies of 'job->print_pipes'
These bugs manifest themselves by eventually causing select() to return
EBADF.
This code is slightly tricky... I believe the attached patch is correct
but please check.
Thanks!
Link: http://www.cups.org/str.php?L1559
Version: 1.2-current
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: start_job.patch
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20060412/c3bca506/attachment.ksh>
More information about the cups-devel
mailing list