CHANGES IN CUPS V1.1.21rc2
+ - The scheduler used a select() timeout of INT_MAX
+ seconds when there was nothing to do, which doesn't
+ work on IRIX (STR #864)
- Updated the cupsaddsmb program to use the new Windows
2000 PostScript drivers instead of the Windows NT
printer drivers (STR #390)
/*
- * "$Id: auth.h,v 1.16.2.8 2004/06/29 13:15:10 mike Exp $"
+ * "$Id: auth.h,v 1.16.2.9 2004/08/23 18:01:56 mike Exp $"
*
* Authorization definitions for the Common UNIX Printing System (CUPS)
* scheduler.
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: auth.h,v 1.16.2.8 2004/06/29 13:15:10 mike Exp $".
+ * End of "$Id: auth.h,v 1.16.2.9 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: banners.h,v 1.2.2.4 2004/06/29 13:15:10 mike Exp $"
+ * "$Id: banners.h,v 1.2.2.5 2004/08/23 18:01:56 mike Exp $"
*
* Banner definitions for the Common UNIX Printing System (CUPS).
*
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: banners.h,v 1.2.2.4 2004/06/29 13:15:10 mike Exp $".
+ * End of "$Id: banners.h,v 1.2.2.5 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: cert.h,v 1.3.2.3 2004/06/29 13:15:10 mike Exp $"
+ * "$Id: cert.h,v 1.3.2.4 2004/08/23 18:01:56 mike Exp $"
*
* Authentication certificate definitions for the Common UNIX
* Printing System (CUPS).
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: cert.h,v 1.3.2.3 2004/06/29 13:15:10 mike Exp $".
+ * End of "$Id: cert.h,v 1.3.2.4 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: classes.h,v 1.10.2.4 2004/06/29 13:15:10 mike Exp $"
+ * "$Id: classes.h,v 1.10.2.5 2004/08/23 18:01:56 mike Exp $"
*
* Printer class definitions for the Common UNIX Printing System (CUPS).
*
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: classes.h,v 1.10.2.4 2004/06/29 13:15:10 mike Exp $".
+ * End of "$Id: classes.h,v 1.10.2.5 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: client.h,v 1.17.2.16 2004/07/02 22:15:51 mike Exp $"
+ * "$Id: client.h,v 1.17.2.17 2004/08/23 18:01:56 mike Exp $"
*
* Client definitions for the Common UNIX Printing System (CUPS) scheduler.
*
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: client.h,v 1.17.2.16 2004/07/02 22:15:51 mike Exp $".
+ * End of "$Id: client.h,v 1.17.2.17 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: conf.c,v 1.77.2.60 2004/08/19 12:46:28 mike Exp $"
+ * "$Id: conf.c,v 1.77.2.61 2004/08/23 18:01:56 mike Exp $"
*
* Configuration routines for the Common UNIX Printing System (CUPS).
*
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: conf.c,v 1.77.2.60 2004/08/19 12:46:28 mike Exp $".
+ * End of "$Id: conf.c,v 1.77.2.61 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: conf.h,v 1.36.2.24 2004/08/19 12:46:28 mike Exp $"
+ * "$Id: conf.h,v 1.36.2.25 2004/08/23 18:01:56 mike Exp $"
*
* Configuration file definitions for the Common UNIX Printing System (CUPS)
* scheduler.
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/* GUI program to use for IRIX */
*FontPath VALUE(NULL),
/* Font search path */
- *ReloadTimeout VALUE(0),
- /* Timeout before reload from SIGHUP */
*RemoteRoot VALUE(NULL),
/* Remote root user */
*Classification VALUE(NULL);
/* Current filter level */
FilterNice VALUE(0),
/* Nice value for filters */
+ ReloadTimeout VALUE(0),
+ /* Timeout before reload from SIGHUP */
RootCertDuration VALUE(300),
/* Root certificate update interval */
RunAsUser VALUE(FALSE),
/*
- * End of "$Id: conf.h,v 1.36.2.24 2004/08/19 12:46:28 mike Exp $".
+ * End of "$Id: conf.h,v 1.36.2.25 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: cupsd.h,v 1.28.2.25 2004/07/02 19:12:48 mike Exp $"
+ * "$Id: cupsd.h,v 1.28.2.26 2004/08/23 18:01:56 mike Exp $"
*
* Main header file for the Common UNIX Printing System (CUPS) scheduler.
*
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: cupsd.h,v 1.28.2.25 2004/07/02 19:12:48 mike Exp $".
+ * End of "$Id: cupsd.h,v 1.28.2.26 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: dirsvc.h,v 1.12.2.11 2004/07/02 19:51:24 mike Exp $"
+ * "$Id: dirsvc.h,v 1.12.2.12 2004/08/23 18:01:56 mike Exp $"
*
* Directory services definitions for the Common UNIX Printing System
* (CUPS) scheduler.
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: dirsvc.h,v 1.12.2.11 2004/07/02 19:51:24 mike Exp $".
+ * End of "$Id: dirsvc.h,v 1.12.2.12 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: file.h,v 1.1.2.4 2004/06/29 13:15:10 mike Exp $"
+ * "$Id: file.h,v 1.1.2.5 2004/08/23 18:01:56 mike Exp $"
*
* File definitions for the Common UNIX Printing System (CUPS).
*
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
#endif /* !_CUPS_FILE_H_ */
/*
- * End of "$Id: file.h,v 1.1.2.4 2004/06/29 13:15:10 mike Exp $".
+ * End of "$Id: file.h,v 1.1.2.5 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: job.h,v 1.25.2.14 2004/07/02 19:12:48 mike Exp $"
+ * "$Id: job.h,v 1.25.2.15 2004/08/23 18:01:56 mike Exp $"
*
* Print job definitions for the Common UNIX Printing System (CUPS) scheduler.
*
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: job.h,v 1.25.2.14 2004/07/02 19:12:48 mike Exp $".
+ * End of "$Id: job.h,v 1.25.2.15 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: main.c,v 1.57.2.65 2004/08/19 12:46:28 mike Exp $"
+ * "$Id: main.c,v 1.57.2.66 2004/08/23 18:01:56 mike Exp $"
*
* Scheduler main loop for the Common UNIX Printing System (CUPS).
*
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
* Restart if all clients are closed and all jobs finished, or
- * if 60 seconds has elapsed...
+ * if the reload timeout has elapsed...
*/
if ((NumClients == 0 && (!job || NeedReload != RELOAD_ALL)) ||
- (time(NULL) - ReloadTime) >= ReloadTime)
+ (time(NULL) - ReloadTime) >= ReloadTimeout)
{
if (!ReadConfiguration())
{
*/
now = time(NULL);
- timeout = 2147483647;
+ timeout = now + 86400; /* 86400 == 1 day */
why = "do nothing";
/*
}
/*
- * Adjust the timeout as needed...
+ * Adjust from absolute to relative time. If p->browse_time above
+ * was 0 then we can end up with a negative value here, so check.
+ * We add 1 second to the timeout since events occur after the
+ * timeout expires...
*/
- if (timeout != 2147483647)
- {
- /*
- * Adjust from absolute to relative time. If p->browse_time above
- * was 0 then we can end up with a negative value here, so check.
- * We add 1 second to the timeout since events occur after the
- * timeout expires...
- */
+ timeout = timeout - now + 1;
- timeout = timeout - now + 1;
-
- if (timeout < 1)
- timeout = 1;
- }
+ if (timeout < 1)
+ timeout = 1;
/*
* Log and return the timeout value...
/*
- * End of "$Id: main.c,v 1.57.2.65 2004/08/19 12:46:28 mike Exp $".
+ * End of "$Id: main.c,v 1.57.2.66 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: mime.h,v 1.3.2.9 2004/06/29 13:15:11 mike Exp $"
+ * "$Id: mime.h,v 1.3.2.10 2004/08/23 18:01:56 mike Exp $"
*
* MIME type/conversion database definitions for the Common UNIX Printing System (CUPS).
*
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
#endif /* !_CUPS_MIME_H_ */
/*
- * End of "$Id: mime.h,v 1.3.2.9 2004/06/29 13:15:11 mike Exp $".
+ * End of "$Id: mime.h,v 1.3.2.10 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: network.h,v 1.1.2.4 2004/08/18 17:49:19 mike Exp $"
+ * "$Id: network.h,v 1.1.2.5 2004/08/23 18:01:56 mike Exp $"
*
* Network interface definitions for the Common UNIX Printing System
* (CUPS) scheduler.
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: network.h,v 1.1.2.4 2004/08/18 17:49:19 mike Exp $".
+ * End of "$Id: network.h,v 1.1.2.5 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: notify.h,v 1.1.2.1 2004/07/02 19:12:48 mike Exp $"
+ * "$Id: notify.h,v 1.1.2.2 2004/08/23 18:01:56 mike Exp $"
*
* Notification definitions for the Common UNIX Printing System (CUPS)
* scheduler.
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: notify.h,v 1.1.2.1 2004/07/02 19:12:48 mike Exp $".
+ * End of "$Id: notify.h,v 1.1.2.2 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: policy.h,v 1.1.2.8 2004/06/30 18:24:18 mike Exp $"
+ * "$Id: policy.h,v 1.1.2.9 2004/08/23 18:01:56 mike Exp $"
*
* Policy definitions for the Common UNIX Printing System (CUPS)
* scheduler.
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: policy.h,v 1.1.2.8 2004/06/30 18:24:18 mike Exp $".
+ * End of "$Id: policy.h,v 1.1.2.9 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: printers.h,v 1.22.2.19 2004/06/30 18:24:18 mike Exp $"
+ * "$Id: printers.h,v 1.22.2.20 2004/08/23 18:01:56 mike Exp $"
*
* Printer definitions for the Common UNIX Printing System (CUPS) scheduler.
*
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: printers.h,v 1.22.2.19 2004/06/30 18:24:18 mike Exp $".
+ * End of "$Id: printers.h,v 1.22.2.20 2004/08/23 18:01:56 mike Exp $".
*/
/*
- * "$Id: statbuf.h,v 1.1.2.1 2004/07/02 19:12:48 mike Exp $"
+ * "$Id: statbuf.h,v 1.1.2.2 2004/08/23 18:01:56 mike Exp $"
*
* Status buffer definitions for the Common UNIX Printing System (CUPS)
* scheduler.
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3142 USA
+ * Hollywood, Maryland 20636 USA
*
* Voice: (301) 373-9600
* EMail: cups-info@cups.org
/*
- * End of "$Id: statbuf.h,v 1.1.2.1 2004/07/02 19:12:48 mike Exp $".
+ * End of "$Id: statbuf.h,v 1.1.2.2 2004/08/23 18:01:56 mike Exp $".
*/