~ubuntu-branches/ubuntu/jaunty/cups/jaunty

« back to all changes in this revision

Viewing changes to backend/socket.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt, Till Kamppeter, Martin Pitt
  • Date: 2009-02-15 18:39:03 UTC
  • mfrom: (6.1.30 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090215183903-i0nhvqyqj4vyn52a
Tags: 1.3.9-13
[ Till Kamppeter ]
* debian/local/filters/pdf-filters/filter/imagetopdf.c: Added support for
  the new "fit-to-page" option (new, more intuitive name for "fitplot").
* debian/filters/pstopdf: Only apply paper size if the "fitplot" or the
  "fit-to-page" option is set.
* debian/local/filters/cpdftocps: Only the last digit of the number of
  copies was used (LP: #309314).
* debian/local/filters/pdf-filters/pdftopdf/pdftopdf.cxx: Do not preceed the
  PDF output with a newline (LP: #303691). Only impose the page size from
  the PPD file to all pages if the "fitplot" or the "fit-to-page" option is 
  set. This prevented from automatic paper tray switching to the correct paper
  sizes when a multiple-page-size document is printed (partial fix for
  LP: #310575).
* debian/patches/pdftops-cups-1.4.dpatch: Updated from CUPS 1.4 SVN. Contains
  fixes for multiple-page-size document printing (partial fix for
  LP: #310575).
* debian/patches/pdftops-dont_fail_on_cancel.dpatch: Removed, should be
  fixed in the new upstream version of pdftops.

[ Martin Pitt ]
* debian/patches/pdftops-cups-1.4.dpatch: Add definition of
  HAVE_PDFTOPS and CUPS_PDFTOPS, so that the filter actually gets
  again built with pdftops support. (Fixes Till's change from above).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * "$Id: socket.c 7721 2008-07-11 22:48:49Z mike $"
 
2
 * "$Id: socket.c 7882 2008-08-28 20:22:20Z mike $"
3
3
 *
4
4
 *   AppSocket backend for the Common UNIX Printing System (CUPS).
5
5
 *
73
73
                sep;                    /* Option separator */
74
74
  int           print_fd;               /* Print file */
75
75
  int           copies;                 /* Number of copies to print */
76
 
  time_t        start_time;             /* Time of first connect */
 
76
  time_t        start_time,             /* Time of first connect */
 
77
                current_time,           /* Current time */
 
78
                wait_time;              /* Time to wait before shutting down socket */
77
79
  int           recoverable;            /* Recoverable error shown? */
78
80
  int           contimeout;             /* Connection timeout */
79
81
  int           waiteof;                /* Wait for end-of-file? */
385
387
  }
386
388
 
387
389
 /*
388
 
  * Get any pending back-channel data...
 
390
  * Wait up to 5 seconds to get any pending back-channel data...
389
391
  */
390
392
 
391
 
  while (wait_bc(device_fd, 5) > 0);
 
393
  wait_time = time(NULL) + 5;
 
394
  while (wait_time >= time(&current_time))
 
395
    if (wait_bc(device_fd, wait_time - current_time) <= 0)
 
396
      break;
392
397
 
393
398
  if (waiteof)
394
399
  {
533
538
 
534
539
 
535
540
/*
536
 
 * End of "$Id: socket.c 7721 2008-07-11 22:48:49Z mike $".
 
541
 * End of "$Id: socket.c 7882 2008-08-28 20:22:20Z mike $".
537
542
 */