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

« back to all changes in this revision

Viewing changes to scheduler/main.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: main.c 7725 2008-07-14 06:16:34Z mike $"
 
2
 * "$Id: main.c 7914 2008-09-07 21:58:01Z mike $"
3
3
 *
4
4
 *   Scheduler main loop for the Common UNIX Printing System (CUPS).
5
5
 *
634
634
#endif /* __APPLE__ */
635
635
 
636
636
 /*
 
637
  * Send server-started event...
 
638
  */
 
639
 
 
640
#ifdef HAVE_LAUNCHD
 
641
  if (Launchd)
 
642
    cupsdAddEvent(CUPSD_EVENT_SERVER_STARTED, NULL, NULL,
 
643
                  "Scheduler started via launchd.");
 
644
  else
 
645
#endif /* HAVE_LAUNCHD */
 
646
  if (fg)
 
647
    cupsdAddEvent(CUPSD_EVENT_SERVER_STARTED, NULL, NULL,
 
648
                  "Scheduler started in foreground.");
 
649
  else
 
650
    cupsdAddEvent(CUPSD_EVENT_SERVER_STARTED, NULL, NULL,
 
651
                  "Scheduler started in background.");
 
652
 
 
653
 /*
637
654
  * Start any pending print jobs...
638
655
  */
639
656
 
741
758
        */
742
759
 
743
760
        cupsdStartServer();
 
761
 
 
762
       /*
 
763
        * Send a server-restarted event...
 
764
        */
 
765
 
 
766
        cupsdAddEvent(CUPSD_EVENT_SERVER_RESTARTED, NULL, NULL,
 
767
                      "Scheduler restarted.");
744
768
      }
745
769
    }
746
770
 
1070
1094
  */
1071
1095
 
1072
1096
  if (stop_scheduler)
 
1097
  {
1073
1098
    cupsdLogMessage(CUPSD_LOG_INFO, "Scheduler shutting down normally.");
 
1099
    cupsdAddEvent(CUPSD_EVENT_SERVER_STOPPED, NULL, NULL,
 
1100
                  "Scheduler shutting down normally.");
 
1101
  }
1074
1102
  else
 
1103
  {
1075
1104
    cupsdLogMessage(CUPSD_LOG_ERROR,
1076
1105
                    "Scheduler shutting down due to program error.");
 
1106
    cupsdAddEvent(CUPSD_EVENT_SERVER_STOPPED, NULL, NULL,
 
1107
                  "Scheduler shutting down due to program error.");
 
1108
  }
1077
1109
 
1078
1110
 /*
1079
1111
  * Close all network clients...
1981
2013
 
1982
2014
 
1983
2015
/*
1984
 
 * End of "$Id: main.c 7725 2008-07-14 06:16:34Z mike $".
 
2016
 * End of "$Id: main.c 7914 2008-09-07 21:58:01Z mike $".
1985
2017
 */