Skip to content

Commit

Permalink
Try fixing CI builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Dec 23, 2023
1 parent ccee303 commit d846f1a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
1 change: 1 addition & 0 deletions pappl/libpappl2.def
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ papplSystemAddLink
papplSystemAddListenerFd
papplSystemAddListeners
papplSystemAddMIMEFilter
papplSystemAddMIMEInspector
papplSystemAddResourceCallback
papplSystemAddResourceData
papplSystemAddResourceDirectory
Expand Down
18 changes: 11 additions & 7 deletions pappl/system-accessors.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,12 @@ papplSystemAddListeners(
//
// 'papplSystemAddMIMEFilter()' - Add a file filter to the system.
//
// This function adds file filter and query callbacks to the system to be used
// for processing different kinds of document data in print jobs. The "srctype"
// and "dsttype" arguments specify the source and destination MIME media types
// as constant strings. A destination MIME media type of "image/pwg-raster"
// specifies a filter that uses the driver's raster interface. Other
// destination types imply direct submission to the output device using the
// `papplDeviceXxx` functions.
// This function adds a file filter callback to the system to be used for
// processing different kinds of document data in print jobs. The "srctype"
// and "dsttype" arguments specify the source and destination MIME media types.
// A destination MIME media type of "image/pwg-raster" specifies a filter that
// uses the driver's raster interface. Other destination types imply direct
// submission to the output device using the `papplDeviceXxx` functions.
//
// > Note: This function may not be called while the system is running.
//
Expand Down Expand Up @@ -254,6 +253,11 @@ papplSystemAddMIMEFilter(
//
// 'papplSystemAddMIMEInspector()' - Add a file inspector to the system.
//
// This function adds a file inspector callback to the system to be used for
// determining the number of color and monochrome pages in the document data.
// The "type" argument specifies the MIME media type.
//
// > Note: This function may not be called while the system is running.
//

void
Expand Down
6 changes: 6 additions & 0 deletions pappl/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,12 @@ papplSystemRun(pappl_system_t *system) // I - System
papplLog(system, PAPPL_LOGLEVEL_DEBUG, "Idle shutdown.");
break;
}
else
{
// Processing jobs, check again in 5 seconds...
papplLog(system, PAPPL_LOGLEVEL_DEBUG, "No idle shutdown - %lu job(s) in queue.", (unsigned long)jcount);
idletime += 5;
}
}

if (system->shutdown_time || sigterm_time)
Expand Down

0 comments on commit d846f1a

Please sign in to comment.